instruction
stringlengths 67
299
| input
stringlengths 110
572
| output
stringlengths 18
557
|
---|---|---|
Write a SQL query that answers the following question: Which Attendance has a Score of 4–3, and Points smaller than 5? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_13 (attendance INTEGER, score VARCHAR, points VARCHAR) | SELECT MAX(attendance) FROM table_name_13 WHERE score = "4–3" AND points < 5 |
Write a SQL query that answers the following question: What club received a DF player for free? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_52 (to_club VARCHAR, transfer_fee VARCHAR, pos VARCHAR) | SELECT to_club FROM table_name_52 WHERE transfer_fee = "free" AND pos = "df" |
Write a SQL query that answers the following question: What is the Pick # for brent meeke? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_45 (pick__number VARCHAR, player VARCHAR) | SELECT pick__number FROM table_name_45 WHERE player = "brent meeke" |
Write a SQL query that answers the following question: Which grand prix had gerhard berger in his fastest lap and a jacques villeneuve pole position? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_24 (grand_prix VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR) | SELECT grand_prix FROM table_name_24 WHERE fastest_lap = "gerhard berger" AND pole_position = "jacques villeneuve" |
Write a SQL query that answers the following question: what is the average wins when percent is more than 0.4 and teams is chargers~? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_53 (wins INTEGER, percent VARCHAR, teams VARCHAR) | SELECT AVG(wins) FROM table_name_53 WHERE percent > 0.4 AND teams = "chargers~" |
Write a SQL query that answers the following question: List the name of albums that are released by aritist whose name has 'Led' | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE artists (id VARCHAR, name VARCHAR); CREATE TABLE albums (title VARCHAR, artist_id VARCHAR) | SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id WHERE T1.name LIKE '%Led%' |
Write a SQL query that answers the following question: In what tournament is there a result of 46-18? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_28 (tournament VARCHAR, result VARCHAR) | SELECT tournament FROM table_name_28 WHERE result = "46-18" |
Write a SQL query that answers the following question: What pick did Clemson choose? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_38 (pick VARCHAR, school VARCHAR) | SELECT pick FROM table_name_38 WHERE school = "clemson" |
Write a SQL query that answers the following question: What was the record for the Argonauts on September 7? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_24136814_3 (record VARCHAR, date VARCHAR) | SELECT record FROM table_24136814_3 WHERE date = "September 7" |
Write a SQL query that answers the following question: What is the average number scored in a friendly at kryoia soveto, moscow? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_24 (scored INTEGER, competition VARCHAR, venue VARCHAR) | SELECT AVG(scored) FROM table_name_24 WHERE competition = "friendly" AND venue = "kryoia soveto, moscow" |
Write a SQL query that answers the following question: What is the episode when the original performaer is diana ross? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_29547777_1 (episode VARCHAR, original_performer VARCHAR) | SELECT episode FROM table_29547777_1 WHERE original_performer = "Diana Ross" |
Write a SQL query that answers the following question: What is the low grid total for a retired due to steering in under 15 laps? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_21 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) | SELECT MIN(grid) FROM table_name_21 WHERE time_retired = "steering" AND laps < 15 |
Write a SQL query that answers the following question: How many totals have a Bronze of 0, and a Gold smaller than 0? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_22 (total INTEGER, bronze VARCHAR, gold VARCHAR) | SELECT SUM(total) FROM table_name_22 WHERE bronze = 0 AND gold < 0 |
Write a SQL query that answers the following question: Which episode number in season 5 was viewed by 3.00 million U.S. viziers? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_11820086_1 (no_in_season INTEGER, us_viewers__millions_ VARCHAR) | SELECT MIN(no_in_season) FROM table_11820086_1 WHERE us_viewers__millions_ = "3.00" |
Write a SQL query that answers the following question: Name the number of color for furcifer pardalis | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_175442_1 (color VARCHAR, scientific_name VARCHAR) | SELECT COUNT(color) FROM table_175442_1 WHERE scientific_name = "Furcifer pardalis" |
Write a SQL query that answers the following question: What competition has may 5, 2001 as the date? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_25 (competition VARCHAR, date VARCHAR) | SELECT competition FROM table_name_25 WHERE date = "may 5, 2001" |
Write a SQL query that answers the following question: Name the most municipalities for alto alentejo province (partly ribatejo) | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_221375_1 (municipalities INTEGER, province_of_1936 VARCHAR) | SELECT MAX(municipalities) FROM table_221375_1 WHERE province_of_1936 = "Alto Alentejo Province (partly Ribatejo)" |
Write a SQL query that answers the following question: How many average scores have preliminary scores over 9.25, interview scores more than 9.44, and evening gown scores of 9.77? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_98 (average VARCHAR, evening_gown VARCHAR, preliminaries VARCHAR, interview VARCHAR) | SELECT COUNT(average) FROM table_name_98 WHERE preliminaries > 9.25 AND interview > 9.44 AND evening_gown = 9.77 |
Write a SQL query that answers the following question: What is the power in kilowatts of TV-12? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_24673888_1 (power_kw VARCHAR, ch__number VARCHAR) | SELECT power_kw FROM table_24673888_1 WHERE ch__number = "TV-12" |
Write a SQL query that answers the following question: What is the highest production code of an episode written by Tim Loane? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_18335117_2 (production_code INTEGER, writer VARCHAR) | SELECT MAX(production_code) FROM table_18335117_2 WHERE writer = "Tim Loane" |
Write a SQL query that answers the following question: In the Formula One World Championships, which entrant had 0 points with a Ferrari 156 Chassis after 1961? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_2 (entrant VARCHAR, chassis VARCHAR, points VARCHAR, year VARCHAR) | SELECT entrant FROM table_name_2 WHERE points = 0 AND year > 1961 AND chassis = "ferrari 156" |
Write a SQL query that answers the following question: What date was the name Coppa Acerbo? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_7 (date VARCHAR, name VARCHAR) | SELECT date FROM table_name_7 WHERE name = "coppa acerbo" |
Write a SQL query that answers the following question: Which time has a Rider of anthony west? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_66 (time VARCHAR, rider VARCHAR) | SELECT time FROM table_name_66 WHERE rider = "anthony west" |
Write a SQL query that answers the following question: Who was the Decision at Anaheim's home game? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_51 (decision VARCHAR, home VARCHAR) | SELECT decision FROM table_name_51 WHERE home = "anaheim" |
Write a SQL query that answers the following question: What was the average number of "goals for", scored in the club Real Oviedo that had a "goal difference" lower than -16 and fewer than 9 wins? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_68 (goals_for INTEGER, wins VARCHAR, goal_difference VARCHAR, club VARCHAR) | SELECT AVG(goals_for) FROM table_name_68 WHERE goal_difference < -16 AND club = "real oviedo" AND wins < 9 |
Write a SQL query that answers the following question: Which Played has a Lost larger than 2, and a Team of américa? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_4 (played VARCHAR, lost VARCHAR, team VARCHAR) | SELECT played FROM table_name_4 WHERE lost > 2 AND team = "américa" |
Write a SQL query that answers the following question: What is the away team's score of the game where the away team is Geelong? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_1 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_1 WHERE away_team = "geelong" |
Write a SQL query that answers the following question: What is the title of the production with a number of 1039? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_83 (title VARCHAR, production_number VARCHAR) | SELECT title FROM table_name_83 WHERE production_number = "1039" |
Write a SQL query that answers the following question: display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M and make the result set in ascending order by department number. | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR, salary VARCHAR, department_id VARCHAR) | SELECT first_name, last_name, hire_date, salary, department_id FROM employees WHERE NOT first_name LIKE '%M%' ORDER BY department_id |
Write a SQL query that answers the following question: What is the sum of all totals with a rank greater than 6, gold greater than 0, and silver greater than 2? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_11 (total INTEGER, silver VARCHAR, rank VARCHAR, gold VARCHAR) | SELECT SUM(total) FROM table_name_11 WHERE rank > 6 AND gold > 0 AND silver = 2 |
Write a SQL query that answers the following question: What is the Date of Catalog 573 194-2? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_76 (date VARCHAR, catalog VARCHAR) | SELECT date FROM table_name_76 WHERE catalog = "573 194-2" |
Write a SQL query that answers the following question: Which episode had Lavern Baker? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_26250151_1 (episode VARCHAR, original_recording_artist VARCHAR) | SELECT episode FROM table_26250151_1 WHERE original_recording_artist = "LaVern Baker" |
Write a SQL query that answers the following question: What is the college/junior/club team (league) of the player who was pick number 130? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_14209245_9 (college_junior_club_team__league_ VARCHAR, pick__number VARCHAR) | SELECT college_junior_club_team__league_ FROM table_14209245_9 WHERE pick__number = "130" |
Write a SQL query that answers the following question: Which District has a First elected larger than 1858? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_21 (district VARCHAR, first_elected INTEGER) | SELECT district FROM table_name_21 WHERE first_elected > 1858 |
Write a SQL query that answers the following question: What team did they lose to when they had a 28-22 record? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_71 (loss VARCHAR, record VARCHAR) | SELECT loss FROM table_name_71 WHERE record = "28-22" |
Write a SQL query that answers the following question: When toronto blue jays are the mlb team who are the fscl team? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_18373863_2 (fcsl_team VARCHAR, mlb_team VARCHAR) | SELECT fcsl_team FROM table_18373863_2 WHERE mlb_team = "Toronto Blue Jays" |
Write a SQL query that answers the following question: Which Release price (USD ) has a GPU frequency of 650–1150 mhz and a sSpec number of sr0pq(e1)? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_20 (release_price___usd__ VARCHAR, gpu_frequency VARCHAR, sspec_number VARCHAR) | SELECT release_price___usd__ FROM table_name_20 WHERE gpu_frequency = "650–1150 mhz" AND sspec_number = "sr0pq(e1)" |
Write a SQL query that answers the following question: Which leader born on December 17, 1874 started their term before 1984? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_50 (name VARCHAR, term_start VARCHAR, date_of_birth VARCHAR) | SELECT name FROM table_name_50 WHERE term_start < 1984 AND date_of_birth = "december 17, 1874" |
Write a SQL query that answers the following question: Who is the home team when hawthorn is the away team? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_95 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_95 WHERE away_team = "hawthorn" |
Write a SQL query that answers the following question: What's the center of the province that spreads out on 23860 km2? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_23887174_1 (center VARCHAR, area__km²_ VARCHAR) | SELECT center FROM table_23887174_1 WHERE area__km²_ = 23860 |
Write a SQL query that answers the following question: What team has 102 Points against? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_61 (team VARCHAR, points_against VARCHAR) | SELECT team FROM table_name_61 WHERE points_against = "102" |
Write a SQL query that answers the following question: Who did they lose to 3-17? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_67 (opponent VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_67 WHERE score = "3-17" |
Write a SQL query that answers the following question: What is the sum of the appearances at the league cup for the defender who had less than 10 appearances at the UEFA cup? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_29 (league_cup INTEGER, position VARCHAR, UEfa_cup VARCHAR) | SELECT SUM(league_cup) FROM table_name_29 WHERE position = "defender" AND UEfa_cup < 10 |
Write a SQL query that answers the following question: what is the molecules when the percent mass is 1.0? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_8 (molecules VARCHAR, percent_of_mass VARCHAR) | SELECT molecules FROM table_name_8 WHERE percent_of_mass = "1.0" |
Write a SQL query that answers the following question: How many years have 78 for points? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_24 (year VARCHAR, points VARCHAR) | SELECT COUNT(year) FROM table_name_24 WHERE points = 78 |
Write a SQL query that answers the following question: Name the team for kirk hinrich , derrick rose , john salmons (6) | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_22669044_9 (team VARCHAR, high_assists VARCHAR) | SELECT team FROM table_22669044_9 WHERE high_assists = "Kirk Hinrich , Derrick Rose , John Salmons (6)" |
Write a SQL query that answers the following question: What is the average weight of all players? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE Player (weight INTEGER) | SELECT AVG(weight) FROM Player |
Write a SQL query that answers the following question: Who was the lead envoy of the congratulation mission in 1718 with the Ryūkyūan King shō kei? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_10 (lead_envoy VARCHAR, year VARCHAR, ryūkyūan_king VARCHAR, mission_type VARCHAR) | SELECT lead_envoy FROM table_name_10 WHERE ryūkyūan_king = "shō kei" AND mission_type = "congratulation" AND year = 1718 |
Write a SQL query that answers the following question: What's the date of the new orleans team ? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_27734577_8 (date VARCHAR, team VARCHAR) | SELECT date FROM table_27734577_8 WHERE team = "New Orleans" |
Write a SQL query that answers the following question: What was the name of the competition that took place on may 31, 2008? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_14 (competition VARCHAR, date VARCHAR) | SELECT competition FROM table_name_14 WHERE date = "may 31, 2008" |
Write a SQL query that answers the following question: How many status' are there with a population of 90565? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_22815568_2 (status VARCHAR, population VARCHAR) | SELECT COUNT(status) FROM table_22815568_2 WHERE population = 90565 |
Write a SQL query that answers the following question: What is the Label of the September 19, 2008 release in Germany? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_25 (label VARCHAR, date VARCHAR, region VARCHAR) | SELECT label FROM table_name_25 WHERE date = "september 19, 2008" AND region = "germany" |
Write a SQL query that answers the following question: When was the player born who has 1 caps? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_53 (date_of_birth__age_ VARCHAR, caps VARCHAR) | SELECT date_of_birth__age_ FROM table_name_53 WHERE caps = 1 |
Write a SQL query that answers the following question: What is the Airport with a ICAO of EDDH? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_87 (airport VARCHAR, icao VARCHAR) | SELECT airport FROM table_name_87 WHERE icao = "eddh" |
Write a SQL query that answers the following question: WHich Frequency has a Format of country / news / sports? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_67 (frequency VARCHAR, format VARCHAR) | SELECT frequency FROM table_name_67 WHERE format = "country / news / sports" |
Write a SQL query that answers the following question: What is the publication date of the book that is narrated by Michael Maloney? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_2950964_1 (published VARCHAR, audiobook_narrator VARCHAR) | SELECT published FROM table_2950964_1 WHERE audiobook_narrator = "Michael Maloney" |
Write a SQL query that answers the following question: What is Spain's skip? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_92 (skip VARCHAR, nation VARCHAR) | SELECT skip FROM table_name_92 WHERE nation = "spain" |
Write a SQL query that answers the following question: What is the Proto-Malayo-Polynesian word for the Proto-Oceanic word of *saqit, *turi? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_71 (proto_malayo_polynesian VARCHAR, proto_oceanic VARCHAR) | SELECT proto_malayo_polynesian FROM table_name_71 WHERE proto_oceanic = "*saqit, *turi" |
Write a SQL query that answers the following question: What is the frequency of the soft adult contemporary stations? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_14 (frequency VARCHAR, format VARCHAR) | SELECT frequency FROM table_name_14 WHERE format = "soft adult contemporary" |
Write a SQL query that answers the following question: How many different countries are all the swimmers from? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE swimmer (nationality VARCHAR) | SELECT COUNT(DISTINCT nationality) FROM swimmer |
Write a SQL query that answers the following question: Which missions were scheduled to launch on November 16, 2006? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_11869952_3 (mission VARCHAR, launch_date VARCHAR) | SELECT mission FROM table_11869952_3 WHERE launch_date = "November 16, 2006" |
Write a SQL query that answers the following question: Which team has a long of 67? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_6 (team VARCHAR, long VARCHAR) | SELECT team FROM table_name_6 WHERE long = "67" |
Write a SQL query that answers the following question: What was the score in the year 2004? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_72 (score VARCHAR, year VARCHAR) | SELECT score FROM table_name_72 WHERE year = "2004" |
Write a SQL query that answers the following question: Which 2009 has a 2008 of A, and a Tournament of canada masters? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_65 (tournament VARCHAR) | SELECT 2009 FROM table_name_65 WHERE 2008 = "a" AND tournament = "canada masters" |
Write a SQL query that answers the following question: For what tournament was Blaž Kavčič the opponent in the final? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_16 (tournament VARCHAR, opponent_in_the_final VARCHAR) | SELECT tournament FROM table_name_16 WHERE opponent_in_the_final = "blaž kavčič" |
Write a SQL query that answers the following question: Tell me the result for week of 4 | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_46 (result VARCHAR, week VARCHAR) | SELECT result FROM table_name_46 WHERE week = 4 |
Write a SQL query that answers the following question: Who was the constructor in the location Monza? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1140076_2 (constructor VARCHAR, location VARCHAR) | SELECT constructor FROM table_1140076_2 WHERE location = "Monza" |
Write a SQL query that answers the following question: What school did the player that is 6-6 go to? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_69 (school VARCHAR, height VARCHAR) | SELECT school FROM table_name_69 WHERE height = "6-6" |
Write a SQL query that answers the following question: How many new conferences are in the NCLL deep south conference? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_26476336_2 (new_conference VARCHAR, new_classification VARCHAR) | SELECT COUNT(new_conference) FROM table_26476336_2 WHERE new_classification = "NCLL Deep South Conference" |
Write a SQL query that answers the following question: how many voice actor (englbeingh 1998 / pioneer) with voice actor (japanese) being shinobu satouchi | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1410384_1 (voice_actor__english_1998___pioneer_ VARCHAR, voice_actor__japanese_ VARCHAR) | SELECT COUNT(voice_actor__english_1998___pioneer_) FROM table_1410384_1 WHERE voice_actor__japanese_ = "Shinobu Satouchi" |
Write a SQL query that answers the following question: Who was the away team when the venue was Windy Hill? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_59 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_59 WHERE venue = "windy hill" |
Write a SQL query that answers the following question: What is the name of the country that has a transfer window of winter with an end after 2009 and moving from Bolton Wanderers? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_45 (country VARCHAR, moving_from VARCHAR, transfer_window VARCHAR, ends VARCHAR) | SELECT country FROM table_name_45 WHERE transfer_window = "winter" AND ends > 2009 AND moving_from = "bolton wanderers" |
Write a SQL query that answers the following question: What is the maximum t20 on green lane? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1176371_1 (t20_matches INTEGER, name_of_ground VARCHAR) | SELECT MAX(t20_matches) FROM table_1176371_1 WHERE name_of_ground = "Green Lane" |
Write a SQL query that answers the following question: Which Democratic has a District smaller than 7, and a Republican of dan mansell? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_99 (democratic VARCHAR, district VARCHAR, republican VARCHAR) | SELECT democratic FROM table_name_99 WHERE district < 7 AND republican = "dan mansell" |
Write a SQL query that answers the following question: What team was the Away team when the Tie no was 3? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_55 (away_team VARCHAR, tie_no VARCHAR) | SELECT away_team FROM table_name_55 WHERE tie_no = "3" |
Write a SQL query that answers the following question: How many project staff worked as leaders or started working before '1989-04-24 23:51:54'? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE Project_Staff (role_code VARCHAR, date_from VARCHAR) | SELECT COUNT(*) FROM Project_Staff WHERE role_code = 'leader' OR date_from < '1989-04-24 23:51:54' |
Write a SQL query that answers the following question: How many were drawn when 13 were lost? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_17625749_3 (drawn VARCHAR, lost VARCHAR) | SELECT drawn FROM table_17625749_3 WHERE lost = "13" |
Write a SQL query that answers the following question: how many district with incumbent being lindy boggs | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1341586_19 (district VARCHAR, incumbent VARCHAR) | SELECT COUNT(district) FROM table_1341586_19 WHERE incumbent = "Lindy Boggs" |
Write a SQL query that answers the following question: Name the year for t-10th | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_20774360_2 (year VARCHAR, standing VARCHAR) | SELECT year FROM table_20774360_2 WHERE standing = "T-10th" |
Write a SQL query that answers the following question: What is the remark for Norway? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_38 (remarks VARCHAR, country_of_origin VARCHAR) | SELECT remarks FROM table_name_38 WHERE country_of_origin = "norway" |
Write a SQL query that answers the following question: How many numbers were recorded under max speed for 1 USAF space flight and total flights 34? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_221315_3 (max_speed__mph_ VARCHAR, usaf_space_flights VARCHAR, total_flights VARCHAR) | SELECT COUNT(max_speed__mph_) FROM table_221315_3 WHERE usaf_space_flights = 1 AND total_flights = 34 |
Write a SQL query that answers the following question: Who was the opponent on April 2? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_56 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_56 WHERE date = "april 2" |
Write a SQL query that answers the following question: what's the record with result being w 21–7 | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_14951643_1 (record VARCHAR, result VARCHAR) | SELECT record FROM table_14951643_1 WHERE result = "W 21–7" |
Write a SQL query that answers the following question: Where Result is nominated and Organization is 54th the television academy drama awards, what is the award? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_80 (award VARCHAR, result VARCHAR, organization VARCHAR) | SELECT award FROM table_name_80 WHERE result = "nominated" AND organization = "54th the television academy drama awards" |
Write a SQL query that answers the following question: WHAT IS THE DATE WITH AN AWAY TEAM OF WORKINGTON? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_16 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_16 WHERE away_team = "workington" |
Write a SQL query that answers the following question: What is the total number of Losses when the percentage is 54.83, with more than 8 points? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_91 (losses VARCHAR, percentage VARCHAR, points VARCHAR) | SELECT COUNT(losses) FROM table_name_91 WHERE percentage = 54.83 AND points > 8 |
Write a SQL query that answers the following question: Who was the opponent in a week below 14 on October 10, 1993? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_18 (opponent VARCHAR, week VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_18 WHERE week < 14 AND date = "october 10, 1993" |
Write a SQL query that answers the following question: What venue did mahela jayawardene and thilan samaraweera play at? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_42 (venue VARCHAR, batting_partners VARCHAR) | SELECT venue FROM table_name_42 WHERE batting_partners = "mahela jayawardene and thilan samaraweera" |
Write a SQL query that answers the following question: Which bike had a grid less than 35 and time at 37:58.607? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_13 (bike VARCHAR, grid VARCHAR, time VARCHAR) | SELECT bike FROM table_name_13 WHERE grid < 35 AND time = "37:58.607" |
Write a SQL query that answers the following question: Name the college for nate binder | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_25017530_5 (college VARCHAR, player VARCHAR) | SELECT college FROM table_25017530_5 WHERE player = "Nate Binder" |
Write a SQL query that answers the following question: Which Format has a Date of 1993, and a Catalog of cleo 2481-2? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_81 (format VARCHAR, date VARCHAR, catalog VARCHAR) | SELECT format FROM table_name_81 WHERE date = 1993 AND catalog = "cleo 2481-2" |
Write a SQL query that answers the following question: What is the date for the 10b serial? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_46 (date VARCHAR, serial VARCHAR) | SELECT date FROM table_name_46 WHERE serial = "10b" |
Write a SQL query that answers the following question: Name the total number of grupo capitol valladolid | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_12962773_13 (no VARCHAR, current_club VARCHAR) | SELECT COUNT(no) FROM table_12962773_13 WHERE current_club = "Grupo Capitol Valladolid" |
Write a SQL query that answers the following question: Which Puchat Ligi has a UEFA Cup smaller than 2, and a Player of takesure chinyama? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_64 (puchat_ligi INTEGER, uefa_cup VARCHAR, player VARCHAR) | SELECT MIN(puchat_ligi) FROM table_name_64 WHERE uefa_cup < 2 AND player = "takesure chinyama" |
Write a SQL query that answers the following question: What is the number of professors for different school? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE department (school_code VARCHAR, dept_code VARCHAR); CREATE TABLE professor (dept_code VARCHAR) | SELECT COUNT(*), T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code |
Write a SQL query that answers the following question: Which Score has a Visitor of toronto st. pats, and a Home of montreal canadiens, and a Record of 3–2–0? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_83 (score VARCHAR, record VARCHAR, visitor VARCHAR, home VARCHAR) | SELECT score FROM table_name_83 WHERE visitor = "toronto st. pats" AND home = "montreal canadiens" AND record = "3–2–0" |
Write a SQL query that answers the following question: Which stadium is for football with the China League One? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_34 (stadium VARCHAR, sport VARCHAR, league VARCHAR) | SELECT stadium FROM table_name_34 WHERE sport = "football" AND league = "china league one" |
Write a SQL query that answers the following question: what is the time when the laps is less than 21 and the grid is more than 17? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_88 (time VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT time FROM table_name_88 WHERE laps < 21 AND grid > 17 |
Write a SQL query that answers the following question: Which club was founded after 1998? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_49 (club VARCHAR, founded INTEGER) | SELECT club FROM table_name_49 WHERE founded > 1998 |
Write a SQL query that answers the following question: How tall is Marco Belinelli? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_12962773_15 (height VARCHAR, player VARCHAR) | SELECT height FROM table_12962773_15 WHERE player = "Marco Belinelli" |