instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: Which venue has a neutral H/A/N, lower than position 3 and a score of 141? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (venue VARCHAR, score VARCHAR, h_a_n VARCHAR, pos VARCHAR) | SELECT venue FROM table_name_85 WHERE h_a_n = "neutral" AND pos < 3 AND score = "141" |
Write a SQL query that answers the following question: Which H/A/N has a score of 105*♠? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (h_a_n VARCHAR, score VARCHAR) | SELECT h_a_n FROM table_name_13 WHERE score = "105*♠" |
Write a SQL query that answers the following question: What is the average goals scored when less than 34 were played and there were more than 2 draws? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (goals_scored INTEGER, played VARCHAR, draw VARCHAR) | SELECT AVG(goals_scored) FROM table_name_78 WHERE played < 34 AND draw > 2 |
Write a SQL query that answers the following question: What is the average goals scored of the team who scored 44 points and placed higher than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (goals_scored INTEGER, points VARCHAR, place VARCHAR) | SELECT AVG(goals_scored) FROM table_name_48 WHERE points = "44" AND place > 5 |
Write a SQL query that answers the following question: What is the lowest place of the team who conceded 36 goals and lost more than 6 times? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (place INTEGER, goals_conceded VARCHAR, lost VARCHAR) | SELECT MIN(place) FROM table_name_41 WHERE goals_conceded = 36 AND lost > 6 |
Write a SQL query that answers the following question: what is games when the losses is more than 1, percent is 0.5 and wins is 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (games VARCHAR, wins VARCHAR, losses VARCHAR, percent VARCHAR) | SELECT games FROM table_name_36 WHERE losses > 1 AND percent = 0.5 AND wins = 2 |
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 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: What is the average wins when teams is lions and the percent is more than 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (wins INTEGER, teams VARCHAR, percent VARCHAR) | SELECT AVG(wins) FROM table_name_31 WHERE teams = "lions" AND percent > 0 |
Write a SQL query that answers the following question: what is the highest wins when the losses is less than 1, team is rams and the games is more than 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (wins INTEGER, games VARCHAR, losses VARCHAR, teams VARCHAR) | SELECT MAX(wins) FROM table_name_23 WHERE losses < 1 AND teams = "rams" AND games > 8 |
Write a SQL query that answers the following question: What category is Matthew Barton? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (category VARCHAR, opponent VARCHAR) | SELECT category FROM table_name_35 WHERE opponent = "matthew barton" |
Write a SQL query that answers the following question: When did the ship commissioned in November 1975 with a bow number of ps-18 launch? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (launched VARCHAR, commissioned VARCHAR, bow_number VARCHAR) | SELECT launched FROM table_name_33 WHERE commissioned = "november 1975" AND bow_number = "ps-18" |
Write a SQL query that answers the following question: When did the ship that was commissioned July 1948 with a bow number of ps-31 launch? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (launched VARCHAR, commissioned VARCHAR, bow_number VARCHAR) | SELECT launched FROM table_name_22 WHERE commissioned = "july 1948" AND bow_number = "ps-31" |
Write a SQL query that answers the following question: When was the ship BRP Miguel Malvar commissioned? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (commissioned VARCHAR, ship_name VARCHAR) | SELECT commissioned FROM table_name_78 WHERE ship_name = "brp miguel malvar" |
Write a SQL query that answers the following question: What is the population of northfield parish that has an area less than 342.4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (population INTEGER, area_km_2 VARCHAR, official_name VARCHAR) | SELECT SUM(population) FROM table_name_50 WHERE area_km_2 < 342.4 AND official_name = "northfield" |
Write a SQL query that answers the following question: What is the population of the parish with a census ranking of 579 of 5,008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (population INTEGER, census_ranking VARCHAR) | SELECT SUM(population) FROM table_name_32 WHERE census_ranking = "579 of 5,008" |
Write a SQL query that answers the following question: What is the population of the parish that has an area of 304.06? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (population INTEGER, area_km_2 VARCHAR) | SELECT SUM(population) FROM table_name_78 WHERE area_km_2 = 304.06 |
Write a SQL query that answers the following question: What is the earliest year the world junior championships has 1500 m notes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (year INTEGER, notes VARCHAR, competition VARCHAR) | SELECT MIN(year) FROM table_name_85 WHERE notes = "1500 m" AND competition = "world junior championships" |
Write a SQL query that answers the following question: Which venue had 5000 m notes in 2009 with a 1st position? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (venue VARCHAR, position VARCHAR, notes VARCHAR, year VARCHAR) | SELECT venue FROM table_name_2 WHERE notes = "5000 m" AND year = 2009 AND position = "1st" |
Write a SQL query that answers the following question: What is the average year with 7th (heats) position? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (year INTEGER, position VARCHAR) | SELECT AVG(year) FROM table_name_50 WHERE position = "7th (heats)" |
Write a SQL query that answers the following question: What Method was used with opponent Kenneth Allen? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (method VARCHAR, opponent VARCHAR) | SELECT method FROM table_name_55 WHERE opponent = "kenneth allen" |
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 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 people attended the game against the Kaizer Chiefs? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (attendance INTEGER, opponents VARCHAR) | SELECT SUM(attendance) FROM table_name_7 WHERE opponents = "kaizer chiefs" |
Write a SQL query that answers the following question: What is the result F-A with an H/A of h and more than 31,727 attending? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (result_f___a VARCHAR, h___a VARCHAR, attendance VARCHAR) | SELECT result_f___a FROM table_name_11 WHERE h___a = "h" AND attendance > 31 OFFSET 727 |
Write a SQL query that answers the following question: What is Player, when College/Junior/Club Team (League) is "Val d'Or Foreurs ( QMJHL )"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (player VARCHAR, college_junior_club_team__league_ VARCHAR) | SELECT player FROM table_name_23 WHERE college_junior_club_team__league_ = "val d'or foreurs ( qmjhl )" |
Write a SQL query that answers the following question: What is the Position, when Player is "Magnus Nygren"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (position VARCHAR, player VARCHAR) | SELECT position FROM table_name_53 WHERE player = "magnus nygren" |
Write a SQL query that answers the following question: What is Position, when Round is less than 5, when Nationality is "Canada", and when College/Junior/Club Team (League) is "Saint John Sea Dogs ( QMJHL )"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (position VARCHAR, college_junior_club_team__league_ VARCHAR, round VARCHAR, nationality VARCHAR) | SELECT position FROM table_name_30 WHERE round < 5 AND nationality = "canada" AND college_junior_club_team__league_ = "saint john sea dogs ( qmjhl )" |
Write a SQL query that answers the following question: What is College/Junior/Club Team (League), when Position is "Defence", when Nationality is "Canada", when Round is less than 5, and when Player is "Josiah Didier"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (college_junior_club_team__league_ VARCHAR, player VARCHAR, round VARCHAR, position VARCHAR, nationality VARCHAR) | SELECT college_junior_club_team__league_ FROM table_name_18 WHERE position = "defence" AND nationality = "canada" AND round < 5 AND player = "josiah didier" |
Write a SQL query that answers the following question: count the the average Total of ian baker-finch? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (total INTEGER, player VARCHAR) | SELECT AVG(total) FROM table_name_39 WHERE player = "ian baker-finch" |
Write a SQL query that answers the following question: Which Country has a Year(s) won of 1963? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (country VARCHAR, year_s__won VARCHAR) | SELECT country FROM table_name_62 WHERE year_s__won = "1963" |
Write a SQL query that answers the following question: What is the money for the player with a score of 68-69-67-73=277? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (money___$__ VARCHAR, score VARCHAR) | SELECT money___$__ FROM table_name_72 WHERE score = 68 - 69 - 67 - 73 = 277 |
Write a SQL query that answers the following question: What is the to par of the player with a 72-71-65-69=277 score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (to_par VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_55 WHERE score = 72 - 71 - 65 - 69 = 277 |
Write a SQL query that answers the following question: What is the country of the player with playoff money and a score of 66-67-70-67=270? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (country VARCHAR, money___$__ VARCHAR, score VARCHAR) | SELECT country FROM table_name_73 WHERE money___$__ = "playoff" AND score = 66 - 67 - 70 - 67 = 270 |
Write a SQL query that answers the following question: How much money does the player with a score of 76-70-65-68=279 have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (money___$__ VARCHAR, score VARCHAR) | SELECT money___$__ FROM table_name_24 WHERE score = 76 - 70 - 65 - 68 = 279 |
Write a SQL query that answers the following question: What is the score of player darren clarke, who has $112,500? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (score VARCHAR, money___$__ VARCHAR, player VARCHAR) | SELECT score FROM table_name_72 WHERE money___$__ = "112,500" AND player = "darren clarke" |
Write a SQL query that answers the following question: What is the to par of player notah begay iii from the United States? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (to_par VARCHAR, country VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_59 WHERE country = "united states" AND player = "notah begay iii" |
Write a SQL query that answers the following question: What song has a draw more than 4 in 1st place? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (song VARCHAR, draw VARCHAR, place VARCHAR) | SELECT song FROM table_name_65 WHERE draw > 4 AND place = "1st" |
Write a SQL query that answers the following question: Name the Weight of ádám steinmetz category:articles with hcards? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (weight VARCHAR, name VARCHAR) | SELECT weight FROM table_name_96 WHERE name = "ádám steinmetz category:articles with hcards" |
Write a SQL query that answers the following question: Name the Weight which has a Name of balázs hárai category:articles with hcards? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (weight VARCHAR, name VARCHAR) | SELECT weight FROM table_name_10 WHERE name = "balázs hárai category:articles with hcards" |
Write a SQL query that answers the following question: Name the 012 club which has of norbert hosnyánszky category:articles with hcards? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (name VARCHAR) | SELECT 2012 AS _club FROM table_name_23 WHERE name = "norbert hosnyánszky category:articles with hcards" |
Write a SQL query that answers the following question: What is the lowest Against, when Venue is "Twickenham , London", when Status is "Six Nations", and when Opposing Teams is "France"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (against INTEGER, opposing_teams VARCHAR, venue VARCHAR, status VARCHAR) | SELECT MIN(against) FROM table_name_78 WHERE venue = "twickenham , london" AND status = "six nations" AND opposing_teams = "france" |
Write a SQL query that answers the following question: What is the total number of Against, when Date is "27/02/2005"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (against VARCHAR, date VARCHAR) | SELECT COUNT(against) FROM table_name_63 WHERE date = "27/02/2005" |
Write a SQL query that answers the following question: What is the highest Against, when Date is "27/02/2005"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (against INTEGER, date VARCHAR) | SELECT MAX(against) FROM table_name_29 WHERE date = "27/02/2005" |
Write a SQL query that answers the following question: What is Status, when Opposing Teams is "Italy"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (status VARCHAR, opposing_teams VARCHAR) | SELECT status FROM table_name_16 WHERE opposing_teams = "italy" |
Write a SQL query that answers the following question: Which Name has Apparent Magnitude smaller than 11.4, and R.A. (J2000) of 04h17m35.8s? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (name VARCHAR, apparent_magnitude VARCHAR, ra___j2000__ VARCHAR) | SELECT name FROM table_name_75 WHERE apparent_magnitude < 11.4 AND ra___j2000__ = "04h17m35.8s" |
Write a SQL query that answers the following question: Which R.A. (J2000) has a Name of ngc 1543? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (ra___j2000__ VARCHAR, name VARCHAR) | SELECT ra___j2000__ FROM table_name_68 WHERE name = "ngc 1543" |
Write a SQL query that answers the following question: Which Dec. (J2000) has a Redshift (km/ s) of 1331 ± 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (dec___j2000__ VARCHAR, redshift__km__s__ VARCHAR) | SELECT dec___j2000__ FROM table_name_31 WHERE redshift__km__s__ = "1331 ± 3" |
Write a SQL query that answers the following question: Which R.A. (J2000) has a Name of ngc 1515? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (ra___j2000__ VARCHAR, name VARCHAR) | SELECT ra___j2000__ FROM table_name_64 WHERE name = "ngc 1515" |
Write a SQL query that answers the following question: Which R.A. (J2000) has Apparent Magnitude of 11.7, and Dec. (J2000) of °07′06″? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (ra___j2000__ VARCHAR, apparent_magnitude VARCHAR, dec___j2000__ VARCHAR) | SELECT ra___j2000__ FROM table_name_22 WHERE apparent_magnitude = 11.7 AND dec___j2000__ = "°07′06″" |
Write a SQL query that answers the following question: Which player had a To par of +11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (player VARCHAR, to_par VARCHAR) | SELECT player FROM table_name_66 WHERE to_par = "+11" |
Write a SQL query that answers the following question: Who won in 1997 with a finish of t48? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (player VARCHAR, finish VARCHAR, year_s__won VARCHAR) | SELECT player FROM table_name_47 WHERE finish = "t48" AND year_s__won = "1997" |
Write a SQL query that answers the following question: What player from the United States had a total of 297? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (player VARCHAR, country VARCHAR, total VARCHAR) | SELECT player FROM table_name_33 WHERE country = "united states" AND total = 297 |
Write a SQL query that answers the following question: Which country won in 1988? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (country VARCHAR, year_s__won VARCHAR) | SELECT country FROM table_name_19 WHERE year_s__won = "1988" |
Write a SQL query that answers the following question: Which party had a term start of 5 august 1999? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (party VARCHAR, term_start VARCHAR) | SELECT party FROM table_name_95 WHERE term_start = "5 august 1999" |
Write a SQL query that answers the following question: What term end had minister Danny Ayalon? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (term_end VARCHAR, minister VARCHAR) | SELECT term_end FROM table_name_40 WHERE minister = "danny ayalon" |
Write a SQL query that answers the following question: Which goverment had a party of yisrael beiteinu? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (governments VARCHAR, party VARCHAR) | SELECT governments FROM table_name_60 WHERE party = "yisrael beiteinu" |
Write a SQL query that answers the following question: Who was the minister of the labor party and had 26 goverments? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (minister VARCHAR, party VARCHAR, governments VARCHAR) | SELECT minister FROM table_name_82 WHERE party = "labor party" AND governments = "26" |
Write a SQL query that answers the following question: What is the category that came before 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (category VARCHAR, year INTEGER) | SELECT category FROM table_name_44 WHERE year < 2011 |
Write a SQL query that answers the following question: What is the year of the Premios Carlos Gardel 2009 award? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (year VARCHAR, award VARCHAR) | SELECT year FROM table_name_58 WHERE award = "premios carlos gardel 2009" |
Write a SQL query that answers the following question: What is Andrea Suarez Lazaro's height? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (height VARCHAR, contestant VARCHAR) | SELECT height FROM table_name_25 WHERE contestant = "andrea suarez lazaro" |
Write a SQL query that answers the following question: What is niurbi encarnación ynoa's height? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (height VARCHAR, contestant VARCHAR) | SELECT height FROM table_name_95 WHERE contestant = "niurbi encarnación ynoa" |
Write a SQL query that answers the following question: What is the province for Jamao Afuera? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (province VARCHAR, _community VARCHAR, hometown VARCHAR) | SELECT province, _community FROM table_name_13 WHERE hometown = "jamao afuera" |
Write a SQL query that answers the following question: What is the geographical region for hometown Imbert? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (geographical_regions VARCHAR, hometown VARCHAR) | SELECT geographical_regions FROM table_name_1 WHERE hometown = "imbert" |
Write a SQL query that answers the following question: What is the Name of the Ship attacked on 20February1942? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (name_of_ship VARCHAR, date VARCHAR) | SELECT name_of_ship FROM table_name_64 WHERE date = "20february1942" |
Write a SQL query that answers the following question: Which ship was sunk at 01:00? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (name_of_ship VARCHAR, fate VARCHAR, time VARCHAR) | SELECT name_of_ship FROM table_name_96 WHERE fate = "sunk at" AND time = "01:00" |
Write a SQL query that answers the following question: What is the to par for the 68-72-73=213 score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (to_par VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_73 WHERE score = 68 - 72 - 73 = 213 |
Write a SQL query that answers the following question: What is the to par for the 69-70-72=211 score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (to_par VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_56 WHERE score = 69 - 70 - 72 = 211 |
Write a SQL query that answers the following question: What is the to par for the United States with a 67-71-73=211 score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (to_par VARCHAR, country VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_72 WHERE country = "united states" AND score = 67 - 71 - 73 = 211 |
Write a SQL query that answers the following question: What country has t4 place and a 67-71-73=211 score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (country VARCHAR, place VARCHAR, score VARCHAR) | SELECT country FROM table_name_16 WHERE place = "t4" AND score = 67 - 71 - 73 = 211 |
Write a SQL query that answers the following question: What is the to par for Australia and a 73-69-71=213 score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (to_par VARCHAR, country VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_43 WHERE country = "australia" AND score = 73 - 69 - 71 = 213 |
Write a SQL query that answers the following question: What Location has a Partner of app, a Population Served larger than 2000, and a Design flow (LPM) of 375? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (location VARCHAR, design_flow__lpm_ VARCHAR, partner VARCHAR, population_served VARCHAR) | SELECT location FROM table_name_31 WHERE partner = "app" AND population_served > 2000 AND design_flow__lpm_ = 375 |
Write a SQL query that answers the following question: What Construction Start has an Inauguration Date of 2010 june? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (construction_start VARCHAR, inauguration_date VARCHAR) | SELECT construction_start FROM table_name_39 WHERE inauguration_date = "2010 june" |
Write a SQL query that answers the following question: What Construction Start has a Design flow (LPM) of 1300? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (construction_start VARCHAR, design_flow__lpm_ VARCHAR) | SELECT construction_start FROM table_name_99 WHERE design_flow__lpm_ = 1300 |
Write a SQL query that answers the following question: What Location has a Design flow (LPM) smaller than 1900, and a Construction Start of 2006 june? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (location VARCHAR, design_flow__lpm_ VARCHAR, construction_start VARCHAR) | SELECT location FROM table_name_40 WHERE design_flow__lpm_ < 1900 AND construction_start = "2006 june" |
Write a SQL query that answers the following question: What Partner has a Construction Start of 2008 january? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (partner VARCHAR, construction_start VARCHAR) | SELECT partner FROM table_name_2 WHERE construction_start = "2008 january" |
Write a SQL query that answers the following question: What is the total Design flow (LPM) with a Partner of app, a Construction Start of 2008 january, and a Population Served larger than 3500? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (design_flow__lpm_ INTEGER, population_served VARCHAR, partner VARCHAR, construction_start VARCHAR) | SELECT SUM(design_flow__lpm_) FROM table_name_6 WHERE partner = "app" AND construction_start = "2008 january" AND population_served > 3500 |
Write a SQL query that answers the following question: What is Sandy Lyle's To Par? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_76 WHERE player = "sandy lyle" |
Write a SQL query that answers the following question: What is Australia's score where they were in place t1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (score VARCHAR, country VARCHAR, place VARCHAR) | SELECT score FROM table_name_43 WHERE country = "australia" AND place = "t1" |
Write a SQL query that answers the following question: What place has Wales as a country? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (place VARCHAR, country VARCHAR) | SELECT place FROM table_name_16 WHERE country = "wales" |
Write a SQL query that answers the following question: What is the To Par of Peter Senior from Australia? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (to_par VARCHAR, country VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_28 WHERE country = "australia" AND player = "peter senior" |
Write a SQL query that answers the following question: What is the score of Howard Clark from England with a To Par of +1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (score VARCHAR, player VARCHAR, to_par VARCHAR, country VARCHAR) | SELECT score FROM table_name_55 WHERE to_par = "+1" AND country = "england" AND player = "howard clark" |
Write a SQL query that answers the following question: What is the score of the player with a To Par of +1 from Spain? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (score VARCHAR, to_par VARCHAR, country VARCHAR) | SELECT score FROM table_name_54 WHERE to_par = "+1" AND country = "spain" |
Write a SQL query that answers the following question: Who won the event against U.S.A.? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (status VARCHAR, opposing_teams VARCHAR) | SELECT status FROM table_name_39 WHERE opposing_teams = "u.s.a." |
Write a SQL query that answers the following question: Where was the match on 10/11/2001 against 15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (venue VARCHAR, against VARCHAR, date VARCHAR) | SELECT venue FROM table_name_3 WHERE against = 15 AND date = "10/11/2001" |
Write a SQL query that answers the following question: What is the lowest against team in the Six Nations status in Lansdowne Road, Dublin? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (against INTEGER, status VARCHAR, venue VARCHAR) | SELECT MIN(against) FROM table_name_81 WHERE status = "six nations" AND venue = "lansdowne road, dublin" |
Write a SQL query that answers the following question: What 2008 has 1r as a 2010, A as the 2007, and 1r as the 2009? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (Id VARCHAR) | SELECT 2008 FROM table_name_54 WHERE 2010 = "1r" AND 2007 = "a" AND 2009 = "1r" |
Write a SQL query that answers the following question: What 2008 has A as the 2007, and 2r as the 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (Id VARCHAR) | SELECT 2008 FROM table_name_40 WHERE 2007 = "a" AND 2010 = "2r" |
Write a SQL query that answers the following question: What 2009 has lq as the 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (Id VARCHAR) | SELECT 2009 FROM table_name_58 WHERE 2011 = "lq" |
Write a SQL query that answers the following question: What 2009 has 345 as the 2007? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (Id VARCHAR) | SELECT 2009 FROM table_name_33 WHERE 2007 = "345" |
Write a SQL query that answers the following question: What nation has a sport of weightlifting and a pinyin of kùkè qúndǎo? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (nation VARCHAR, sport VARCHAR, pinyin VARCHAR) | SELECT nation FROM table_name_24 WHERE sport = "weightlifting" AND pinyin = "kùkè qúndǎo" |
Write a SQL query that answers the following question: What day did Glentoran play at Windsor Park, Belfast? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (date VARCHAR, team VARCHAR, venue VARCHAR) | SELECT date FROM table_name_34 WHERE team = "glentoran" AND venue = "windsor park, belfast" |
Write a SQL query that answers the following question: What day was the score 1-0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_39 WHERE score = "1-0" |
Write a SQL query that answers the following question: Which team scored 2-1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (team VARCHAR, score VARCHAR) | SELECT team FROM table_name_40 WHERE score = "2-1" |
Write a SQL query that answers the following question: What is the 1998 value with 2r in 2003? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (Id VARCHAR) | SELECT 1998 FROM table_name_60 WHERE 2003 = "2r" |
Write a SQL query that answers the following question: What is the 2004 value with 2r in 1994? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (Id VARCHAR) | SELECT 2004 FROM table_name_60 WHERE 1994 = "2r" |
Write a SQL query that answers the following question: What is the 2003 value for the french open, which has a 1r in 1994? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (tournament VARCHAR) | SELECT 2003 FROM table_name_10 WHERE 1994 = "1r" AND tournament = "french open" |
Write a SQL query that answers the following question: What is the 2003 value with a 1r in 1998, a 14 in 1994, and a 7-12 career? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (career VARCHAR) | SELECT 2003 FROM table_name_50 WHERE 1998 = "1r" AND 1994 = "1r" AND career = "7-12" |
Write a SQL query that answers the following question: Which driver finished in position 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (driver VARCHAR, fin_pos VARCHAR) | SELECT driver FROM table_name_50 WHERE fin_pos = 8 |
Write a SQL query that answers the following question: What is the average grid for Marco Andretti with a finishing position higher than 19? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (grid INTEGER, driver VARCHAR, fin_pos VARCHAR) | SELECT AVG(grid) FROM table_name_85 WHERE driver = "marco andretti" AND fin_pos > 19 |
Write a SQL query that answers the following question: What is Car number 98's lowest grid? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (grid INTEGER, car_no VARCHAR) | SELECT MIN(grid) FROM table_name_53 WHERE car_no = 98 |
Write a SQL query that answers the following question: What is the highest Laps Led with a grid of less than 4 and a finishing position of 15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (laps INTEGER, grid VARCHAR, fin_pos VARCHAR) | SELECT MAX(laps) AS Led FROM table_name_26 WHERE grid < 4 AND fin_pos = 15 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.