instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What is the average total for teams with under 34 bronzes, 0 silver, and under 14 gold? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR) | SELECT AVG(total) FROM table_name_88 WHERE bronze < 34 AND gold < 14 AND silver < 0 |
Write a SQL query that answers the following question: What is the fewest number of golds for teams with 0 silver? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (gold INTEGER, silver INTEGER) | SELECT MIN(gold) FROM table_name_54 WHERE silver < 0 |
Write a SQL query that answers the following question: What nations participated in 2007? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (nations VARCHAR, year VARCHAR) | SELECT nations FROM table_name_87 WHERE year = "2007" |
Write a SQL query that answers the following question: What event type had BODY CMAS in 1980 and underwater hockey? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (event_type VARCHAR, sport VARCHAR, body VARCHAR, year VARCHAR) | SELECT event_type FROM table_name_57 WHERE body = "cmas" AND year = "1980" AND sport = "underwater hockey" |
Write a SQL query that answers the following question: What body is at the World Championship for Underwater Target shooting? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (body VARCHAR, event_type VARCHAR, sport VARCHAR) | SELECT body FROM table_name_12 WHERE event_type = "world championship" AND sport = "underwater target shooting" |
Write a SQL query that answers the following question: What body participated in 1973? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (body VARCHAR, year VARCHAR) | SELECT body FROM table_name_43 WHERE year = "1973" |
Write a SQL query that answers the following question: What was the record setting time in the 800m freestyle? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (time VARCHAR, event VARCHAR) | SELECT time FROM table_name_76 WHERE event = "800m freestyle" |
Write a SQL query that answers the following question: What power has A as the class, and 93.7 as the frequency? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (power VARCHAR, class VARCHAR, frequency VARCHAR) | SELECT power FROM table_name_26 WHERE class = "a" AND frequency = "93.7" |
Write a SQL query that answers the following question: What city of license has cbon-fm-11 as the identifier? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (city_of_license VARCHAR, identifier VARCHAR) | SELECT city_of_license FROM table_name_77 WHERE identifier = "cbon-fm-11" |
Write a SQL query that answers the following question: What power has thunder bay as the city of license? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (power VARCHAR, city_of_license VARCHAR) | SELECT power FROM table_name_17 WHERE city_of_license = "thunder bay" |
Write a SQL query that answers the following question: What identifier has 100000 watts as the power? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (identifier VARCHAR, power VARCHAR) | SELECT identifier FROM table_name_98 WHERE power = "100000 watts" |
Write a SQL query that answers the following question: What identifier has 90.3 as the frequency? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (identifier VARCHAR, frequency VARCHAR) | SELECT identifier FROM table_name_92 WHERE frequency = "90.3" |
Write a SQL query that answers the following question: What class has cbon-fm-23 as the identifier? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (class VARCHAR, identifier VARCHAR) | SELECT class FROM table_name_28 WHERE identifier = "cbon-fm-23" |
Write a SQL query that answers the following question: What is the total number of medals for West Germany with more than 1 bronze medal and more than 2 gold medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (total VARCHAR, gold VARCHAR, bronze VARCHAR, nation VARCHAR) | SELECT COUNT(total) FROM table_name_74 WHERE bronze > 1 AND nation = "west germany" AND gold > 2 |
Write a SQL query that answers the following question: What is Denmark's rank? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (rank VARCHAR, nation VARCHAR) | SELECT rank FROM table_name_87 WHERE nation = "denmark" |
Write a SQL query that answers the following question: What country did ekaterina karsten row for with fa listed under notes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (country VARCHAR, notes VARCHAR, athlete VARCHAR) | SELECT country FROM table_name_70 WHERE notes = "fa" AND athlete = "ekaterina karsten" |
Write a SQL query that answers the following question: What time was the race for the country of france? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (time VARCHAR, country VARCHAR) | SELECT time FROM table_name_37 WHERE country = "france" |
Write a SQL query that answers the following question: What time was the race for the country of france with fb listed under notes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (time VARCHAR, notes VARCHAR, country VARCHAR) | SELECT time FROM table_name_10 WHERE notes = "fb" AND country = "france" |
Write a SQL query that answers the following question: What is the sum of the ranks for bulgaria? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (rank INTEGER, country VARCHAR) | SELECT SUM(rank) FROM table_name_10 WHERE country = "bulgaria" |
Write a SQL query that answers the following question: What is the rank of the new zealand team that had fb listed under notes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (rank VARCHAR, notes VARCHAR, country VARCHAR) | SELECT rank FROM table_name_31 WHERE notes = "fb" AND country = "new zealand" |
Write a SQL query that answers the following question: Which Position has a Pick of 74? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (position VARCHAR, pick VARCHAR) | SELECT position FROM table_name_42 WHERE pick = 74 |
Write a SQL query that answers the following question: Which Team has a Position of linebacker? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (team VARCHAR, position VARCHAR) | SELECT team FROM table_name_86 WHERE position = "linebacker" |
Write a SQL query that answers the following question: What is the Team for Stanford College? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (team VARCHAR, college VARCHAR) | SELECT team FROM table_name_87 WHERE college = "stanford" |
Write a SQL query that answers the following question: What Pick does the College Southeastern Louisiana have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (pick VARCHAR, college VARCHAR) | SELECT pick FROM table_name_2 WHERE college = "southeastern louisiana" |
Write a SQL query that answers the following question: Can you tell me the Gold that has the Total larger than 2, and the Bronze smaller than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (gold VARCHAR, total VARCHAR, bronze VARCHAR) | SELECT gold FROM table_name_50 WHERE total > 2 AND bronze < 1 |
Write a SQL query that answers the following question: Can you tell me the Nation that has the Bronze of 1, and the Gold of 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (nation VARCHAR, bronze VARCHAR, gold VARCHAR) | SELECT nation FROM table_name_68 WHERE bronze = 1 AND gold = 0 |
Write a SQL query that answers the following question: Can you tell me the average Total that has the Silver larger than 1, and the Bronze smaller than 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (total INTEGER, silver VARCHAR, bronze VARCHAR) | SELECT AVG(total) FROM table_name_15 WHERE silver > 1 AND bronze < 8 |
Write a SQL query that answers the following question: What was the highest number of bronze medals when there were a total of 4 medals, 1 silver medals, and less than 2 medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (bronze INTEGER, gold VARCHAR, total VARCHAR, silver VARCHAR) | SELECT MAX(bronze) FROM table_name_99 WHERE total = 4 AND silver = 1 AND gold < 2 |
Write a SQL query that answers the following question: Count the Pommel Horse that has Rings smaller than 59.85 and a Team Total larger than 361.2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (pommel_horse INTEGER, rings VARCHAR, team_total VARCHAR) | SELECT SUM(pommel_horse) FROM table_name_6 WHERE rings < 59.85 AND team_total > 361.2 |
Write a SQL query that answers the following question: Name the highest Parallel Bars of the united states with a Vault smaller than 63.85? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (parallel_bars INTEGER, country VARCHAR, vault VARCHAR) | SELECT MAX(parallel_bars) FROM table_name_61 WHERE country = "united states" AND vault < 63.85 |
Write a SQL query that answers the following question: Name the highest Horizontal Bar which is in france and Rings smaller than 58.975? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (horizontal_bar INTEGER, country VARCHAR, rings VARCHAR) | SELECT MAX(horizontal_bar) FROM table_name_4 WHERE country = "france" AND rings < 58.975 |
Write a SQL query that answers the following question: who is the artist when the televote/sms is 3.20%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (artist VARCHAR, televote_sms VARCHAR) | SELECT artist FROM table_name_20 WHERE televote_sms = "3.20%" |
Write a SQL query that answers the following question: what is the place when the televote/sms is 2.39%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (place INTEGER, televote_sms VARCHAR) | SELECT SUM(place) FROM table_name_47 WHERE televote_sms = "2.39%" |
Write a SQL query that answers the following question: how many times was the televote/sms 2.39% and the place more than 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (draw VARCHAR, televote_sms VARCHAR, place VARCHAR) | SELECT COUNT(draw) FROM table_name_54 WHERE televote_sms = "2.39%" AND place > 9 |
Write a SQL query that answers the following question: Which Release date has a Production Num larger than 5888, and a Director of hugh harman and friz freleng? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (release_date VARCHAR, production_num VARCHAR, director VARCHAR) | SELECT release_date FROM table_name_69 WHERE production_num > 5888 AND director = "hugh harman and friz freleng" |
Write a SQL query that answers the following question: How many production numbers have a Title of bosko in dutch? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (production_num INTEGER, title VARCHAR) | SELECT SUM(production_num) FROM table_name_93 WHERE title = "bosko in dutch" |
Write a SQL query that answers the following question: Which Release date has a Director of tom palmer, and a Production Num larger than 5956? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (release_date VARCHAR, director VARCHAR, production_num VARCHAR) | SELECT release_date FROM table_name_92 WHERE director = "tom palmer" AND production_num > 5956 |
Write a SQL query that answers the following question: How many Goals have Years at club of 1961–1966, and a Debut year larger than 1961? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (goals VARCHAR, years_at_club VARCHAR, debut_year VARCHAR) | SELECT COUNT(goals) FROM table_name_9 WHERE years_at_club = "1961–1966" AND debut_year > 1961 |
Write a SQL query that answers the following question: Which Debut year has Goals of 0, and Years at club of 1963, and Games larger than 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (debut_year INTEGER, games VARCHAR, goals VARCHAR, years_at_club VARCHAR) | SELECT AVG(debut_year) FROM table_name_76 WHERE goals = 0 AND years_at_club = "1963" AND games > 5 |
Write a SQL query that answers the following question: Which Debut year has a Player of bob hayton, and Games smaller than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (debut_year INTEGER, player VARCHAR, games VARCHAR) | SELECT AVG(debut_year) FROM table_name_44 WHERE player = "bob hayton" AND games < 2 |
Write a SQL query that answers the following question: What is the name of the player who competed in the Women's Individual Class 3 in Table Tennis? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (name VARCHAR, sport VARCHAR, event VARCHAR) | SELECT name FROM table_name_38 WHERE sport = "table tennis" AND event = "women's individual class 3" |
Write a SQL query that answers the following question: What was the date of the Women's Individual Class 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (date VARCHAR, event VARCHAR) | SELECT date FROM table_name_73 WHERE event = "women's individual class 3" |
Write a SQL query that answers the following question: What event did Rastislav Turecek participate in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (event VARCHAR, name VARCHAR) | SELECT event FROM table_name_88 WHERE name = "rastislav turecek" |
Write a SQL query that answers the following question: What sport did Miroslav Jambor Richard Csejtey participate in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (sport VARCHAR, name VARCHAR) | SELECT sport FROM table_name_16 WHERE name = "miroslav jambor richard csejtey" |
Write a SQL query that answers the following question: Which Artist has a Draw of 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (artist VARCHAR, draw VARCHAR) | SELECT artist FROM table_name_7 WHERE draw = 6 |
Write a SQL query that answers the following question: Which Song has a Draw smaller than 7, and Points larger than 41, and a Language of german? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (song VARCHAR, language VARCHAR, draw VARCHAR, points VARCHAR) | SELECT song FROM table_name_20 WHERE draw < 7 AND points > 41 AND language = "german" |
Write a SQL query that answers the following question: What was the result for the years after 2001? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (result VARCHAR, year INTEGER) | SELECT result FROM table_name_15 WHERE year > 2001 |
Write a SQL query that answers the following question: Who was the nominee for 2005? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (nominee_s_ VARCHAR, year VARCHAR) | SELECT nominee_s_ FROM table_name_83 WHERE year = 2005 |
Write a SQL query that answers the following question: what is the gp-gs when the receptions is more than 4, long is 55 and avg/g is 151? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (gp_gs VARCHAR, avg_g VARCHAR, receptions VARCHAR, long VARCHAR) | SELECT gp_gs FROM table_name_44 WHERE receptions > 4 AND long = 55 AND avg_g = 151 |
Write a SQL query that answers the following question: what is the name when avg/g is 13.7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (name VARCHAR, avg_g VARCHAR) | SELECT name FROM table_name_1 WHERE avg_g = 13.7 |
Write a SQL query that answers the following question: How many times is avg/g 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (receptions VARCHAR, avg_g VARCHAR) | SELECT COUNT(receptions) FROM table_name_82 WHERE avg_g = 2 |
Write a SQL query that answers the following question: what is the avg/g for john conner when long is less than 25? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (avg_g INTEGER, name VARCHAR, long VARCHAR) | SELECT SUM(avg_g) FROM table_name_75 WHERE name = "john conner" AND long < 25 |
Write a SQL query that answers the following question: What conference did the player originally from the denver broncos play in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (conf VARCHAR, original_nfl_team VARCHAR) | SELECT conf FROM table_name_25 WHERE original_nfl_team = "denver broncos" |
Write a SQL query that answers the following question: Who was the player from texas southern? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (player VARCHAR, college VARCHAR) | SELECT player FROM table_name_72 WHERE college = "texas southern" |
Write a SQL query that answers the following question: What conference did the player with the position of rb play in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (conf VARCHAR, pos VARCHAR) | SELECT conf FROM table_name_44 WHERE pos = "rb" |
Write a SQL query that answers the following question: What was the original nfl team that the player was in from the midwestern conference? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (original_nfl_team VARCHAR, conf VARCHAR) | SELECT original_nfl_team FROM table_name_86 WHERE conf = "midwestern" |
Write a SQL query that answers the following question: What position did athlete play from Tennessee state? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (pos VARCHAR, college VARCHAR) | SELECT pos FROM table_name_86 WHERE college = "tennessee state" |
Write a SQL query that answers the following question: Which Affected area codes have an Effective date of august 30, 2014? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (affected_area_codes VARCHAR, effective_date VARCHAR) | SELECT affected_area_codes FROM table_name_95 WHERE effective_date = "august 30, 2014" |
Write a SQL query that answers the following question: Which Airing date has a Number of episodes larger than 20, and a Genre of modern drama? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (airing_date VARCHAR, number_of_episodes VARCHAR, genre VARCHAR) | SELECT airing_date FROM table_name_39 WHERE number_of_episodes > 20 AND genre = "modern drama" |
Write a SQL query that answers the following question: Which Genre has an English title (Chinese title) of the romance of the white hair maiden 白髮魔女傳? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (genre VARCHAR, english_title__chinese_title_ VARCHAR) | SELECT genre FROM table_name_92 WHERE english_title__chinese_title_ = "the romance of the white hair maiden 白髮魔女傳" |
Write a SQL query that answers the following question: who is the grand finalist when the grand finalists are jonathan loh, peterson poon, nathan santos? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (grand_finalist VARCHAR, grand_finalists VARCHAR) | SELECT grand_finalist FROM table_name_26 WHERE grand_finalists = "jonathan loh, peterson poon, nathan santos" |
Write a SQL query that answers the following question: What is the highest total number of medals for a team ranked smaller than 1 and had 20 gold medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (total INTEGER, gold VARCHAR, rank VARCHAR) | SELECT MAX(total) FROM table_name_40 WHERE gold = 20 AND rank < 1 |
Write a SQL query that answers the following question: What is the nation that had more than 1 gold medal and a total of 62 medals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (nation VARCHAR, gold VARCHAR, total VARCHAR) | SELECT nation FROM table_name_31 WHERE gold > 1 AND total = 62 |
Write a SQL query that answers the following question: What is the highest total medals when there were 0 gold medals and 1 silver? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (total INTEGER, silver VARCHAR, gold VARCHAR) | SELECT MAX(total) FROM table_name_62 WHERE silver = 1 AND gold < 0 |
Write a SQL query that answers the following question: What's the 123kg of the Total world record? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (world_record VARCHAR) | SELECT 123 AS kg FROM table_name_41 WHERE world_record = "total" |
Write a SQL query that answers the following question: What is the name for the assembly segment with a constituency number of 214? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (name VARCHAR, constituency_number VARCHAR) | SELECT name FROM table_name_55 WHERE constituency_number = "214" |
Write a SQL query that answers the following question: What district has an assembly segment named mahidpur? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (district VARCHAR, name VARCHAR) | SELECT district FROM table_name_20 WHERE name = "mahidpur" |
Write a SQL query that answers the following question: Who is Doug Basham's team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (team VARCHAR, wrestler VARCHAR) | SELECT team FROM table_name_39 WHERE wrestler = "doug basham" |
Write a SQL query that answers the following question: What's Jorge Santana's elimination? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (elimination VARCHAR, wrestler VARCHAR) | SELECT elimination FROM table_name_71 WHERE wrestler = "jorge santana" |
Write a SQL query that answers the following question: Who's the wrestler with an elimination of 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (wrestler VARCHAR, elimination VARCHAR) | SELECT wrestler FROM table_name_6 WHERE elimination = "1" |
Write a SQL query that answers the following question: Who's the eliminated by when the elimination was 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (eliminated_by VARCHAR, elimination VARCHAR) | SELECT eliminated_by FROM table_name_61 WHERE elimination = "1" |
Write a SQL query that answers the following question: What is the date where the result was L 27-10 in a week before week 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (date VARCHAR, week VARCHAR, result VARCHAR) | SELECT date FROM table_name_94 WHERE week < 9 AND result = "l 27-10" |
Write a SQL query that answers the following question: What sum of draw had more than 22 in Jury and a Televote of 130? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (draw INTEGER, jury VARCHAR, televote VARCHAR) | SELECT SUM(draw) FROM table_name_91 WHERE jury > 22 AND televote = 130 |
Write a SQL query that answers the following question: What is the total of the jury that is 2nd place and the total is larger than 190? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (jury INTEGER, place VARCHAR, total VARCHAR) | SELECT SUM(jury) FROM table_name_86 WHERE place = "2nd" AND total > 190 |
Write a SQL query that answers the following question: What's the average L/km combines when the L/100km Urban is 13.9, the mpg-UK combined is more than 28.5 and the mpg-UK extra urban is less than 38.7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (l_100km_combined INTEGER, mpg_uk_extra_urban VARCHAR, l_100km_urban__cold_ VARCHAR, mpg_uk_combined VARCHAR) | SELECT AVG(l_100km_combined) FROM table_name_81 WHERE l_100km_urban__cold_ = 13.9 AND mpg_uk_combined > 28.5 AND mpg_uk_extra_urban < 38.7 |
Write a SQL query that answers the following question: What's the least mpg-UK combined when the mpg-UK urban is 25.4, the L/100km extra urban is less than 6.9 and the L/100km urban is more than 11.1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (mpg_uk_combined INTEGER, l_100km_urban__cold_ VARCHAR, mpg_uk_urban__cold_ VARCHAR, l_100km_extra_urban VARCHAR) | SELECT MIN(mpg_uk_combined) FROM table_name_42 WHERE mpg_uk_urban__cold_ = 25.4 AND l_100km_extra_urban < 6.9 AND l_100km_urban__cold_ > 11.1 |
Write a SQL query that answers the following question: What's the CO2 g/km of a Fiat running on diesel with the L/100km urban more than 6.3 and an mpg-UK combined of 43.5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (co_2_g_km VARCHAR, mpg_uk_combined VARCHAR, l_100km_urban__cold_ VARCHAR, fuel_type VARCHAR, manufacturer VARCHAR) | SELECT COUNT(co_2_g_km) FROM table_name_20 WHERE fuel_type = "diesel" AND manufacturer = "fiat" AND l_100km_urban__cold_ > 6.3 AND mpg_uk_combined = 43.5 |
Write a SQL query that answers the following question: What's the total L/100km extra urban fueled by diesel, when the mpg-UK combines is more than 19.2, mpg-US is less than 50 and the L/100m combined is less than 5.7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (l_100km_extra_urban VARCHAR, mpg_us_combined VARCHAR, fuel_type VARCHAR, mpg_uk_combined VARCHAR, l_100km_combined VARCHAR) | SELECT COUNT(l_100km_extra_urban) FROM table_name_52 WHERE mpg_uk_combined > 19.2 AND l_100km_combined < 5.7 AND fuel_type = "diesel" AND mpg_us_combined < 50 |
Write a SQL query that answers the following question: What's the engine capacity when the mpg-UK urban is less than 12.2, the mpg-UK extra urban is less than 18.8 and the mpg-US turban is less than 7.2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (engine_capacity INTEGER, mpg_us_urban VARCHAR, mpg_uk_urban__cold_ VARCHAR, mpg_uk_extra_urban VARCHAR) | SELECT SUM(engine_capacity) FROM table_name_53 WHERE mpg_uk_urban__cold_ < 12.2 AND mpg_uk_extra_urban < 18.8 AND mpg_us_urban < 7.2 |
Write a SQL query that answers the following question: What's the mpg-US urban when the mpg-UK urban is 20 and the mpg-UK extra urban is less than 37.2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (mpg_us_urban INTEGER, mpg_uk_urban__cold_ VARCHAR, mpg_uk_extra_urban VARCHAR) | SELECT SUM(mpg_us_urban) FROM table_name_61 WHERE mpg_uk_urban__cold_ = 20 AND mpg_uk_extra_urban < 37.2 |
Write a SQL query that answers the following question: What was the score on 2010-07-13 when Abby wambach had the assist/pass? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (score VARCHAR, assist_pass VARCHAR, date VARCHAR) | SELECT score FROM table_name_56 WHERE assist_pass = "abby wambach" AND date = "2010-07-13" |
Write a SQL query that answers the following question: What is the location on 2008-06-17 when the lineup was start? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (location VARCHAR, lineup VARCHAR, date VARCHAR) | SELECT location FROM table_name_3 WHERE lineup = "start" AND date = "2008-06-17" |
Write a SQL query that answers the following question: What is the assist/pass on 2008-01-16 when the score was 2-0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (assist_pass VARCHAR, date VARCHAR, score VARCHAR) | SELECT assist_pass FROM table_name_54 WHERE date = "2008-01-16" AND score = "2-0" |
Write a SQL query that answers the following question: What is the result at match reports? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (result VARCHAR, location VARCHAR) | SELECT result FROM table_name_98 WHERE location = "match reports" |
Write a SQL query that answers the following question: What's the points if the goals against were 222? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (points VARCHAR, goals_against VARCHAR) | SELECT points FROM table_name_24 WHERE goals_against = "222" |
Write a SQL query that answers the following question: What are the points if the goals against were 260? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (points VARCHAR, goals_against VARCHAR) | SELECT points FROM table_name_95 WHERE goals_against = "260" |
Write a SQL query that answers the following question: What are the games with an Involuntary suspension of Season (hurricane Rita)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (games VARCHAR, standing VARCHAR) | SELECT games FROM table_name_72 WHERE standing = "involuntary suspension of season (hurricane rita)" |
Write a SQL query that answers the following question: What are the goals for a lost of Involuntary suspension of Season (hurricane Rita)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (goals_for VARCHAR, lost VARCHAR) | SELECT goals_for FROM table_name_44 WHERE lost = "involuntary suspension of season (hurricane rita)" |
Write a SQL query that answers the following question: What's the season that had a lost of 9 with 72 games? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (season VARCHAR, games VARCHAR, lost VARCHAR) | SELECT season FROM table_name_10 WHERE games = "72" AND lost = "9" |
Write a SQL query that answers the following question: What event did he compete in at Taipei? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (format VARCHAR, location VARCHAR) | SELECT format FROM table_name_42 WHERE location = "taipei" |
Write a SQL query that answers the following question: In what season did he compete in the Grand Prix in Kuala Lumpur? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (season VARCHAR, event_type VARCHAR, location VARCHAR) | SELECT season FROM table_name_81 WHERE event_type = "grand prix" AND location = "kuala lumpur" |
Write a SQL query that answers the following question: What is the position of the player with a pick less than 3 from team san diego? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (position VARCHAR, pick VARCHAR, team VARCHAR) | SELECT position FROM table_name_82 WHERE pick < 3 AND team = "san diego" |
Write a SQL query that answers the following question: What location did david mccann receive a siver and morgan fox win the gold? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (location VARCHAR, silver VARCHAR, gold VARCHAR) | SELECT location FROM table_name_38 WHERE silver = "david mccann" AND gold = "morgan fox" |
Write a SQL query that answers the following question: Who received the bronze in 2011? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (bronze VARCHAR, year VARCHAR) | SELECT bronze FROM table_name_71 WHERE year = "2011" |
Write a SQL query that answers the following question: Who received the silver in 2006? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (silver VARCHAR, year VARCHAR) | SELECT silver FROM table_name_31 WHERE year = "2006" |
Write a SQL query that answers the following question: What's the count for obese children and adolescents ranked 48? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (obese_children_and_adolescents VARCHAR, obesity_rank VARCHAR) | SELECT obese_children_and_adolescents FROM table_name_1 WHERE obesity_rank = 48 |
Write a SQL query that answers the following question: What's the rank when the obese children and adolescent count is 14.2%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (obesity_rank INTEGER, obese_children_and_adolescents VARCHAR) | SELECT SUM(obesity_rank) FROM table_name_74 WHERE obese_children_and_adolescents = "14.2%" |
Write a SQL query that answers the following question: What's the rank in West Virginia when the overweight adult was 66.8%? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (obesity_rank VARCHAR, overweight__incl_obese__adults VARCHAR, state_and_district_of_columbia VARCHAR) | SELECT obesity_rank FROM table_name_87 WHERE overweight__incl_obese__adults = "66.8%" AND state_and_district_of_columbia = "west virginia" |
Write a SQL query that answers the following question: What is reserved for Jawad? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR) | SELECT reserved_for___sc___st__none_ FROM table_name_27 WHERE name = "jawad" |
Write a SQL query that answers the following question: What is reserved for the constituency of 228? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) | SELECT reserved_for___sc___st__none_ FROM table_name_65 WHERE constituency_number = "228" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.