instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: When did the Grand Prix de Monaco race? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (date VARCHAR, race_title VARCHAR) | SELECT date FROM table_name_13 WHERE race_title = "grand prix de monaco" |
Write a SQL query that answers the following question: What circuit had 16 rounds? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (circuit VARCHAR, round VARCHAR) | SELECT circuit FROM table_name_79 WHERE round = 16 |
Write a SQL query that answers the following question: Which Grand Prix had 9 rounds? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (grand_prix VARCHAR, round VARCHAR) | SELECT grand_prix FROM table_name_82 WHERE round = 9 |
Write a SQL query that answers the following question: What is the Base Fare in the senior/disabled category? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (base_fares VARCHAR, fare_categories VARCHAR) | SELECT base_fares FROM table_name_18 WHERE fare_categories = "senior/disabled" |
Write a SQL query that answers the following question: Which 30-day Pass has a Base Fare of $3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (day_pass VARCHAR, base_fares VARCHAR) | SELECT 30 - day_pass FROM table_name_74 WHERE base_fares = "$3" |
Write a SQL query that answers the following question: What is the length for years 2012-2013? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (length VARCHAR, year VARCHAR) | SELECT length FROM table_name_29 WHERE year = "2012-2013" |
Write a SQL query that answers the following question: If length is ft (m) with numbers of 6600-6684 (84 buses) for 2003, what is the engine type? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (engine_type VARCHAR, numbers VARCHAR, length VARCHAR, year VARCHAR) | SELECT engine_type FROM table_name_77 WHERE length = "ft (m)" AND year = "2003" AND numbers = "6600-6684 (84 buses)" |
Write a SQL query that answers the following question: For numbers of 2600-2825 (223 buses), what is the length? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (length VARCHAR, numbers VARCHAR) | SELECT length FROM table_name_38 WHERE numbers = "2600-2825 (223 buses)" |
Write a SQL query that answers the following question: What is the lenth of a 2003 Make & Model of nabi 35-lfw? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (length VARCHAR, year VARCHAR, make_ VARCHAR, _model VARCHAR) | SELECT length FROM table_name_52 WHERE year = "2003" AND make_ & _model = "nabi 35-lfw" |
Write a SQL query that answers the following question: What is the length for a diesel engine with numbers of tbd (13 buses)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (length VARCHAR, engine_type VARCHAR, numbers VARCHAR) | SELECT length FROM table_name_92 WHERE engine_type = "diesel" AND numbers = "tbd (13 buses)" |
Write a SQL query that answers the following question: What year has a make & model of mci d4000n? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (year VARCHAR, make_ VARCHAR, _model VARCHAR) | SELECT year FROM table_name_79 WHERE make_ & _model = "mci d4000n" |
Write a SQL query that answers the following question: What type has a Date of 8 dec 16, and a Ship of duchess of cornwall? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (type VARCHAR, date VARCHAR, ship VARCHAR) | SELECT type FROM table_name_75 WHERE date = "8 dec 16" AND ship = "duchess of cornwall" |
Write a SQL query that answers the following question: Which nationality has a Ship of minteh? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (nationality VARCHAR, ship VARCHAR) | SELECT nationality FROM table_name_62 WHERE ship = "minteh" |
Write a SQL query that answers the following question: What is the total Tonnage GRT with a Type of cargo ship, and a Nationality of norway? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (tonnage_grt INTEGER, type VARCHAR, nationality VARCHAR) | SELECT SUM(tonnage_grt) FROM table_name_23 WHERE type = "cargo ship" AND nationality = "norway" |
Write a SQL query that answers the following question: Which Date has a Ship of hallbjorg? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (date VARCHAR, ship VARCHAR) | SELECT date FROM table_name_87 WHERE ship = "hallbjorg" |
Write a SQL query that answers the following question: What is the score of set 3 when the total is 45–31? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (set_3 VARCHAR, total VARCHAR) | SELECT set_3 FROM table_name_24 WHERE total = "45–31" |
Write a SQL query that answers the following question: What is the score for set 2 when set 3 was 15–6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (set_2 VARCHAR, set_3 VARCHAR) | SELECT set_2 FROM table_name_61 WHERE set_3 = "15–6" |
Write a SQL query that answers the following question: What is the total when the score of set 1 was 15–11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (total VARCHAR, set_1 VARCHAR) | SELECT total FROM table_name_68 WHERE set_1 = "15–11" |
Write a SQL query that answers the following question: What is the total when the score of set 1 is 15–11? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (total VARCHAR, set_1 VARCHAR) | SELECT total FROM table_name_5 WHERE set_1 = "15–11" |
Write a SQL query that answers the following question: On what date was the total 25–45? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (date VARCHAR, total VARCHAR) | SELECT date FROM table_name_50 WHERE total = "25–45" |
Write a SQL query that answers the following question: What was St Kilda's score as the Away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_59 WHERE away_team = "st kilda" |
Write a SQL query that answers the following question: At the venue Vfl Park, what was the Home team score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_5 WHERE venue = "vfl park" |
Write a SQL query that answers the following question: How many Reg GP does daniel rahimi have with a rd # greater than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (reg_gp VARCHAR, player VARCHAR, rd__number VARCHAR) | SELECT COUNT(reg_gp) FROM table_name_66 WHERE player = "daniel rahimi" AND rd__number > 3 |
Write a SQL query that answers the following question: What is the lowest Pick # with michael grabner and less than 20 Reg GP? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (pick__number INTEGER, player VARCHAR, reg_gp VARCHAR) | SELECT MIN(pick__number) FROM table_name_90 WHERE player = "michael grabner" AND reg_gp < 20 |
Write a SQL query that answers the following question: Which class has a peak named fountains fell south top? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (class VARCHAR, peak VARCHAR) | SELECT class FROM table_name_31 WHERE peak = "fountains fell south top" |
Write a SQL query that answers the following question: What is the total of Prom in M for Peak great knoutberry hill? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (prom__m_ INTEGER, peak VARCHAR) | SELECT SUM(prom__m_) FROM table_name_72 WHERE peak = "great knoutberry hill" |
Write a SQL query that answers the following question: What is the average height for hewitt class, with prom less than 86, and a Peak of gragareth? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (height__m_ INTEGER, peak VARCHAR, class VARCHAR, prom__m_ VARCHAR) | SELECT AVG(height__m_) FROM table_name_45 WHERE class = "hewitt" AND prom__m_ < 86 AND peak = "gragareth" |
Write a SQL query that answers the following question: In which movie is Selva Nambi a co-singer? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (movie VARCHAR, co_singers VARCHAR) | SELECT movie FROM table_name_20 WHERE co_singers = "selva nambi" |
Write a SQL query that answers the following question: Who was the music director in 1994? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (music_director VARCHAR, year VARCHAR) | SELECT music_director FROM table_name_3 WHERE year = 1994 |
Write a SQL query that answers the following question: What years was Denis Lawson nominated for an award? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (year VARCHAR, nominee VARCHAR) | SELECT COUNT(year) FROM table_name_45 WHERE nominee = "denis lawson" |
Write a SQL query that answers the following question: Did Jason Pennycooke win the award he was nominated for? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (result VARCHAR, nominee VARCHAR) | SELECT result FROM table_name_14 WHERE nominee = "jason pennycooke" |
Write a SQL query that answers the following question: How many years was Best Musical Revival nominated? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (year VARCHAR, nominee VARCHAR) | SELECT COUNT(year) FROM table_name_60 WHERE nominee = "best musical revival" |
Write a SQL query that answers the following question: What award was Denis Lawson nominated for in the Best Actor in a Musical category? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (award VARCHAR, category VARCHAR, nominee VARCHAR) | SELECT award FROM table_name_95 WHERE category = "best actor in a musical" AND nominee = "denis lawson" |
Write a SQL query that answers the following question: Which opponent has an Outcome of winner, and a Date of 5 november 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (opponent VARCHAR, outcome VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_26 WHERE outcome = "winner" AND date = "5 november 2011" |
Write a SQL query that answers the following question: Which date has a Score of 4–6, 2–6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_92 WHERE score = "4–6, 2–6" |
Write a SQL query that answers the following question: Which date has a Opponent of juan mónaco, and a Score of 6–2, 4–6, 7–6 (7–3)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (date VARCHAR, opponent VARCHAR, score VARCHAR) | SELECT date FROM table_name_60 WHERE opponent = "juan mónaco" AND score = "6–2, 4–6, 7–6 (7–3)" |
Write a SQL query that answers the following question: Which outcome has a Opponent of fernando verdasco? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (outcome VARCHAR, opponent VARCHAR) | SELECT outcome FROM table_name_16 WHERE opponent = "fernando verdasco" |
Write a SQL query that answers the following question: Which surface has an Opponent of fernando verdasco? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (surface VARCHAR, opponent VARCHAR) | SELECT surface FROM table_name_41 WHERE opponent = "fernando verdasco" |
Write a SQL query that answers the following question: Which surface has a Date of 5 november 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_40 WHERE date = "5 november 2011" |
Write a SQL query that answers the following question: When the Venue was mcg what was the sum of all Crowds for that venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (crowd INTEGER, venue VARCHAR) | SELECT SUM(crowd) FROM table_name_16 WHERE venue = "mcg" |
Write a SQL query that answers the following question: If the Away team is essendon, what was the Date they played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_62 WHERE away_team = "essendon" |
Write a SQL query that answers the following question: On what Date did the Away team essendon play? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_11 WHERE away_team = "essendon" |
Write a SQL query that answers the following question: When the Home team was north melbourne what was the Date of the game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_49 WHERE home_team = "north melbourne" |
Write a SQL query that answers the following question: What was the record as of September 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_72 WHERE date = "september 1" |
Write a SQL query that answers the following question: What was the losing score on September 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (loss VARCHAR, date VARCHAR) | SELECT loss FROM table_name_48 WHERE date = "september 1" |
Write a SQL query that answers the following question: What is the 1988 value when the 1987 value was 1r? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (Id VARCHAR) | SELECT 1988 FROM table_name_88 WHERE 1987 = "1r" |
Write a SQL query that answers the following question: What is the 1981 value at the Tournament of Wimbledon? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (tournament VARCHAR) | SELECT 1981 FROM table_name_97 WHERE tournament = "wimbledon" |
Write a SQL query that answers the following question: What is the name of the rollercoaster that opened in 2004 in bobbejaanland? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (name VARCHAR, opened VARCHAR, park VARCHAR) | SELECT name FROM table_name_86 WHERE opened = "2004" AND park = "bobbejaanland" |
Write a SQL query that answers the following question: What is the status of the junior coaster model that opened in 2008? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (status VARCHAR, opened VARCHAR, model VARCHAR) | SELECT status FROM table_name_89 WHERE opened = "2008" AND model = "junior coaster" |
Write a SQL query that answers the following question: What is the model for Thor's Hammer which is listed as operating? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (model VARCHAR, status VARCHAR, name VARCHAR) | SELECT model FROM table_name_16 WHERE status = "operating" AND name = "thor's hammer" |
Write a SQL query that answers the following question: What is the name of the coaster that opened in 2011 and is a euro-fighter model? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (name VARCHAR, model VARCHAR, opened VARCHAR) | SELECT name FROM table_name_80 WHERE model = "euro-fighter" AND opened = "2011" |
Write a SQL query that answers the following question: Which driver won the iv j.c.c. jersey road race? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (winning_driver VARCHAR, race_name VARCHAR) | SELECT winning_driver FROM table_name_9 WHERE race_name = "iv j.c.c. jersey road race" |
Write a SQL query that answers the following question: What's the total number of games that had more than 34 points and exactly 3 losses? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (games VARCHAR, points VARCHAR, losses VARCHAR) | SELECT COUNT(games) FROM table_name_73 WHERE points = 34 AND losses = 3 |
Write a SQL query that answers the following question: What's the total number of losses with less than 19 points and more than 36 games? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (losses VARCHAR, points VARCHAR, games VARCHAR) | SELECT COUNT(losses) FROM table_name_14 WHERE points < 19 AND games > 36 |
Write a SQL query that answers the following question: Which season has less than 26 points, more than 18 games, and exactly 13 losses? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (season VARCHAR, losses VARCHAR, points VARCHAR, games VARCHAR) | SELECT season FROM table_name_78 WHERE points < 26 AND games > 18 AND losses = 13 |
Write a SQL query that answers the following question: What is the highest crowd number of the game where the away team was south melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (crowd INTEGER, away_team VARCHAR) | SELECT MAX(crowd) FROM table_name_71 WHERE away_team = "south melbourne" |
Write a SQL query that answers the following question: What is the home team score that played the away team of north melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_73 WHERE away_team = "north melbourne" |
Write a SQL query that answers the following question: What is the away team score of the game that was played at princes park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_47 WHERE venue = "princes park" |
Write a SQL query that answers the following question: If the Home team is carlton, what's the lowest Crowd found? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (crowd INTEGER, home_team VARCHAR) | SELECT MIN(crowd) FROM table_name_13 WHERE home_team = "carlton" |
Write a SQL query that answers the following question: What is the Block A value for an El NOSAWA Mendoza value of kondo (7:08)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (block_a VARCHAR, el_nosawa_mendoza VARCHAR) | SELECT block_a FROM table_name_14 WHERE el_nosawa_mendoza = "kondo (7:08)" |
Write a SQL query that answers the following question: What is the PEPE Michinoku value for a Ryuji Hijikata value of sabin (12:33)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (pepe_michinoku VARCHAR, ryuji_hijikata VARCHAR) | SELECT pepe_michinoku FROM table_name_28 WHERE ryuji_hijikata = "sabin (12:33)" |
Write a SQL query that answers the following question: What is the Shuji Kondo value related to a PEPE Michinoku value of sabin (14:43)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (shuji_kondo VARCHAR, pepe_michinoku VARCHAR) | SELECT shuji_kondo FROM table_name_2 WHERE pepe_michinoku = "sabin (14:43)" |
Write a SQL query that answers the following question: Tell me the declination with NGC number larger than 5750 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (declination___j2000__ VARCHAR, ngc_number INTEGER) | SELECT declination___j2000__ FROM table_name_80 WHERE ngc_number > 5750 |
Write a SQL query that answers the following question: Tell me the final position for fa community shield | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (final_position___round VARCHAR, competition VARCHAR) | SELECT final_position___round FROM table_name_22 WHERE competition = "fa community shield" |
Write a SQL query that answers the following question: Name the first match for 11 may 2008 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (first_match VARCHAR, last_match VARCHAR) | SELECT first_match FROM table_name_84 WHERE last_match = "11 may 2008" |
Write a SQL query that answers the following question: What is the total number of Lifetime India Distributor share earlier than 2009? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (lifetime_india_distributor_share VARCHAR, year INTEGER) | SELECT COUNT(lifetime_india_distributor_share) FROM table_name_39 WHERE year < 2009 |
Write a SQL query that answers the following question: When did South Melbourne play as the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_66 WHERE home_team = "south melbourne" |
Write a SQL query that answers the following question: What was the largest amount of spectators when St Kilda was the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (crowd INTEGER, away_team VARCHAR) | SELECT MAX(crowd) FROM table_name_36 WHERE away_team = "st kilda" |
Write a SQL query that answers the following question: What was Richmond's score when it was the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_83 WHERE away_team = "richmond" |
Write a SQL query that answers the following question: what is the declination (j2000) that has a constellation of hydra and a right ascension (j2000) of 10h46m44.9s? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (declination___j2000__ VARCHAR, constellation VARCHAR, right_ascension___j2000__ VARCHAR) | SELECT declination___j2000__ FROM table_name_77 WHERE constellation = "hydra" AND right_ascension___j2000__ = "10h46m44.9s" |
Write a SQL query that answers the following question: What is the ngc number when the object type is lenticular galaxy and the constellation is hydra? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (ngc_number INTEGER, object_type VARCHAR, constellation VARCHAR) | SELECT MAX(ngc_number) FROM table_name_12 WHERE object_type = "lenticular galaxy" AND constellation = "hydra" |
Write a SQL query that answers the following question: what is the object type when the ngc number is 3314? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (object_type VARCHAR, ngc_number VARCHAR) | SELECT object_type FROM table_name_98 WHERE ngc_number = 3314 |
Write a SQL query that answers the following question: what is the ngc number when the constellation is leo and the declination (j2000) is °42′13″? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (ngc_number INTEGER, constellation VARCHAR, declination___j2000__ VARCHAR) | SELECT AVG(ngc_number) FROM table_name_70 WHERE constellation = "leo" AND declination___j2000__ = "°42′13″" |
Write a SQL query that answers the following question: what is the right ascension (j2000) with the ngc number less than 3384, the constellation is hydra and the object type is spiral galaxy? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR, constellation VARCHAR) | SELECT right_ascension___j2000__ FROM table_name_58 WHERE ngc_number < 3384 AND constellation = "hydra" AND object_type = "spiral galaxy" |
Write a SQL query that answers the following question: What competition was played on October 7, 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (competition VARCHAR, date VARCHAR) | SELECT competition FROM table_name_95 WHERE date = "october 7, 2011" |
Write a SQL query that answers the following question: What's the score for 1992, with the result of a loss? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (score VARCHAR, year VARCHAR, result VARCHAR) | SELECT score FROM table_name_65 WHERE year = 1992 AND result = "loss" |
Write a SQL query that answers the following question: What national league has limoges csp, and french basketball cup? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (national_league VARCHAR, club VARCHAR, national_cup VARCHAR) | SELECT national_league FROM table_name_80 WHERE club = "limoges csp" AND national_cup = "french basketball cup" |
Write a SQL query that answers the following question: What is the club that has the turkish basketball cup and fiba eurochallenge (3rd tier)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (club VARCHAR, national_cup VARCHAR, european_cup VARCHAR) | SELECT club FROM table_name_97 WHERE national_cup = "turkish basketball cup" AND european_cup = "fiba eurochallenge (3rd tier)" |
Write a SQL query that answers the following question: What national cup has fc barcelona? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (national_cup VARCHAR, club VARCHAR) | SELECT national_cup FROM table_name_91 WHERE club = "fc barcelona" |
Write a SQL query that answers the following question: Name the average DDR3 speed for model e-350 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (ddr3_speed INTEGER, model VARCHAR) | SELECT AVG(ddr3_speed) FROM table_name_15 WHERE model = "e-350" |
Write a SQL query that answers the following question: who lost on august 21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (loss VARCHAR, date VARCHAR) | SELECT loss FROM table_name_10 WHERE date = "august 21" |
Write a SQL query that answers the following question: On August 10, what was the record against the Expos? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (record VARCHAR, opponent VARCHAR, date VARCHAR) | SELECT record FROM table_name_21 WHERE opponent = "expos" AND date = "august 10" |
Write a SQL query that answers the following question: What is the average laps for lorenzo bandini with a grid under 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (laps INTEGER, driver VARCHAR, grid VARCHAR) | SELECT AVG(laps) FROM table_name_91 WHERE driver = "lorenzo bandini" AND grid < 3 |
Write a SQL query that answers the following question: What driver has under 53 laps, a grid smaller than 14, and a time/retired of differential? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT driver FROM table_name_28 WHERE laps < 53 AND grid < 14 AND time_retired = "differential" |
Write a SQL query that answers the following question: What music is in the film with an Uncut run time of 95 minutes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (music VARCHAR, uncut_run_time VARCHAR) | SELECT music FROM table_name_63 WHERE uncut_run_time = "95 minutes" |
Write a SQL query that answers the following question: What country is the film that has music of nino oliviero? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (country VARCHAR, music VARCHAR) | SELECT country FROM table_name_10 WHERE music = "nino oliviero" |
Write a SQL query that answers the following question: What music is in the film before 1963? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (music VARCHAR, year INTEGER) | SELECT music FROM table_name_53 WHERE year < 1963 |
Write a SQL query that answers the following question: What music is in the film before 1962? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (music VARCHAR, year VARCHAR) | SELECT music FROM table_name_23 WHERE year = 1962 |
Write a SQL query that answers the following question: Which team played as the home team when north melbourne played as away? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_75 WHERE away_team = "north melbourne" |
Write a SQL query that answers the following question: what is the position of pick #53? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (position VARCHAR, pick__number VARCHAR) | SELECT position FROM table_name_37 WHERE pick__number = 53 |
Write a SQL query that answers the following question: what is the position for andrew paopao? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (position VARCHAR, player VARCHAR) | SELECT position FROM table_name_54 WHERE player = "andrew paopao" |
Write a SQL query that answers the following question: In which venue is South Melbourne the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_11 WHERE home_team = "south melbourne" |
Write a SQL query that answers the following question: When South Melbourne was the home team, who was the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_80 WHERE home_team = "south melbourne" |
Write a SQL query that answers the following question: What venue is Hawthorn the home team at? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_16 WHERE home_team = "hawthorn" |
Write a SQL query that answers the following question: What is the capacity for the arena in Chester? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (capacity VARCHAR, city_area VARCHAR) | SELECT capacity FROM table_name_97 WHERE city_area = "chester" |
Write a SQL query that answers the following question: Which arena has a capactiy of 1,100? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (arena VARCHAR, capacity VARCHAR) | SELECT arena FROM table_name_8 WHERE capacity = "1,100" |
Write a SQL query that answers the following question: What is the last season that the Scottish Rocks played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (last_season VARCHAR, team VARCHAR) | SELECT last_season FROM table_name_90 WHERE team = "scottish rocks" |
Write a SQL query that answers the following question: Which arena has the Milton Keynes Lions and a capacity of 800? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (arena VARCHAR, capacity VARCHAR, team VARCHAR) | SELECT arena FROM table_name_32 WHERE capacity = "800" AND team = "milton keynes lions" |
Write a SQL query that answers the following question: What is the last season the Worcester Wolves played? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (last_season VARCHAR, team VARCHAR) | SELECT last_season FROM table_name_65 WHERE team = "worcester wolves" |
Write a SQL query that answers the following question: Which team is from Birmingham & Telford? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (team VARCHAR, city_area VARCHAR) | SELECT team FROM table_name_17 WHERE city_area = "birmingham & telford" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.