instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is average ratings for Japanese title of ホタルノヒカリ, with episodes larger than 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (average_ratings VARCHAR, episodes VARCHAR, japanese_title VARCHAR)
SELECT average_ratings FROM table_name_38 WHERE episodes > 9 AND japanese_title = "ホタルノヒカリ"
Write a SQL query that answers the following question: Which episodes has the lowest average ratings of 8.7%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (episodes INTEGER, average_ratings VARCHAR)
SELECT MIN(episodes) FROM table_name_65 WHERE average_ratings = "8.7%"
Write a SQL query that answers the following question: Which romaji title, has Japanese title of 菊次郎とさき 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (romaji_title VARCHAR, japanese_title VARCHAR)
SELECT romaji_title FROM table_name_94 WHERE japanese_title = "菊次郎とさき 3"
Write a SQL query that answers the following question: Which TV station, has romaji title of tantei gakuen q and episodes larger than 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (tv_station VARCHAR, episodes VARCHAR, romaji_title VARCHAR)
SELECT tv_station FROM table_name_45 WHERE episodes > 10 AND romaji_title = "tantei gakuen q"
Write a SQL query that answers the following question: What is the Almaty, Kazakhstan when Sergey Filimonov ( KAZ ) is 210kg?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (almaty_ VARCHAR, _kazakhstan VARCHAR, sergey_filimonov___kaz__ VARCHAR)
SELECT almaty_, _kazakhstan FROM table_name_17 WHERE sergey_filimonov___kaz__ = "210kg"
Write a SQL query that answers the following question: What shows for Sergey Filimonov (KAZ) when the Snatch shows snatch?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (sergey_filimonov___kaz__ VARCHAR)
SELECT sergey_filimonov___kaz__ FROM table_name_69 WHERE "snatch" = "snatch"
Write a SQL query that answers the following question: What is the Almaty, Kazakhstan when the Sergey Filimonov (KAZ) is 210kg?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (almaty_ VARCHAR, _kazakhstan VARCHAR, sergey_filimonov___kaz__ VARCHAR)
SELECT almaty_, _kazakhstan FROM table_name_42 WHERE sergey_filimonov___kaz__ = "210kg"
Write a SQL query that answers the following question: What year was the main role a character named Guan Yu (關羽)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (year INTEGER, role VARCHAR, character VARCHAR)
SELECT MIN(year) FROM table_name_89 WHERE role = "main" AND character = "guan yu (關羽)"
Write a SQL query that answers the following question: What is the English character for Lin Ming Kuan (林明寬)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (english VARCHAR, character VARCHAR)
SELECT english FROM table_name_88 WHERE character = "lin ming kuan (林明寬)"
Write a SQL query that answers the following question: What character has a Year larger than 2010 with a lead role, and Chinese Title of 戀夏38℃?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (character VARCHAR, chinese_title VARCHAR, year VARCHAR, role VARCHAR)
SELECT character FROM table_name_85 WHERE year > 2010 AND role = "lead role" AND chinese_title = "戀夏38℃"
Write a SQL query that answers the following question: What is the year that has a character named Wu Ji Wei (無極威)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (year INTEGER, character VARCHAR)
SELECT AVG(year) FROM table_name_27 WHERE character = "wu ji wei (無極威)"
Write a SQL query that answers the following question: Which Round has an Opponent of aleksandr pitchkounov?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (round INTEGER, opponent VARCHAR)
SELECT MIN(round) FROM table_name_81 WHERE opponent = "aleksandr pitchkounov"
Write a SQL query that answers the following question: Which Result has a Round of 5, and an Event of mt one?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (result VARCHAR, round VARCHAR, event VARCHAR)
SELECT result FROM table_name_92 WHERE round = 5 AND event = "mt one"
Write a SQL query that answers the following question: Mortlake club has more than 924 against, less than 14 losses, and how many total draws?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (draws VARCHAR, losses VARCHAR, against VARCHAR, club VARCHAR)
SELECT COUNT(draws) FROM table_name_66 WHERE against > 924 AND club = "mortlake" AND losses < 14
Write a SQL query that answers the following question: What is the total number of wins for Cobden club when there are more than 2 draws?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (wins INTEGER, club VARCHAR, draws VARCHAR)
SELECT SUM(wins) FROM table_name_39 WHERE club = "cobden" AND draws > 2
Write a SQL query that answers the following question: When against is 797 and wins is more than 10, what is the sum of draws?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (draws VARCHAR, against VARCHAR, wins VARCHAR)
SELECT COUNT(draws) FROM table_name_28 WHERE against = 797 AND wins > 10
Write a SQL query that answers the following question: Club warrnambool has less than 9 wins and what average of draws?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (draws INTEGER, wins VARCHAR, club VARCHAR)
SELECT AVG(draws) FROM table_name_63 WHERE wins < 9 AND club = "warrnambool"
Write a SQL query that answers the following question: What is the average number of draws for Mortlake club when they have less than 0 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (draws INTEGER, club VARCHAR, wins VARCHAR)
SELECT AVG(draws) FROM table_name_11 WHERE club = "mortlake" AND wins < 0
Write a SQL query that answers the following question: Which Foreign population has a Population (2004) larger than 234733?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (foreign_population INTEGER, population__2004_ INTEGER)
SELECT AVG(foreign_population) FROM table_name_26 WHERE population__2004_ > 234733
Write a SQL query that answers the following question: Which Population (2004) has a Moroccan population larger than 234506?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (population__2004_ INTEGER, moroccan_population INTEGER)
SELECT AVG(population__2004_) FROM table_name_38 WHERE moroccan_population > 234506
Write a SQL query that answers the following question: What date was the opponent VFL Sindelfingen?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_98 WHERE opponent = "vfl sindelfingen"
Write a SQL query that answers the following question: What date was the attendance 1,804?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_44 WHERE attendance = "1,804"
Write a SQL query that answers the following question: Who was the opponent with an attendance of 628?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_98 WHERE attendance = "628"
Write a SQL query that answers the following question: What bike has a grid greater than 17, laps less than 8, with milos cihak as the rider?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (bike VARCHAR, rider VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT bike FROM table_name_24 WHERE grid > 17 AND laps < 8 AND rider = "milos cihak"
Write a SQL query that answers the following question: What is the highest grid that has gregorio lavilla as the rider?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (grid INTEGER, rider VARCHAR)
SELECT MAX(grid) FROM table_name_89 WHERE rider = "gregorio lavilla"
Write a SQL query that answers the following question: What rider has laps less than 20, a ducati 1098 rs 08 as the bike, with accident as the time, and a grid less than 14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (rider VARCHAR, grid VARCHAR, time VARCHAR, laps VARCHAR, bike VARCHAR)
SELECT rider FROM table_name_64 WHERE laps < 20 AND bike = "ducati 1098 rs 08" AND time = "accident" AND grid < 14
Write a SQL query that answers the following question: How many overs when there are 5231 runs and fewer than 37 matches?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (overs INTEGER, runs VARCHAR, matches VARCHAR)
SELECT SUM(overs) FROM table_name_33 WHERE runs = 5231 AND matches < 37
Write a SQL query that answers the following question: What are the fewest wickets when player's career spanned 1946-1960 and maidens were more than 419?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (wickets INTEGER, career VARCHAR, maidens VARCHAR)
SELECT MIN(wickets) FROM table_name_84 WHERE career = "1946-1960" AND maidens > 419
Write a SQL query that answers the following question: What is the largest number of wickets when there are more than 630 maidens and a best of 7/72?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (wickets INTEGER, maidens VARCHAR, best VARCHAR)
SELECT MAX(wickets) FROM table_name_55 WHERE maidens > 630 AND best = "7/72"
Write a SQL query that answers the following question: Who has fewer than 2047.3 overs, more than 200 wickets and an average of 29.02?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (name VARCHAR, average VARCHAR, overs VARCHAR, wickets VARCHAR)
SELECT name FROM table_name_53 WHERE overs < 2047.3 AND wickets > 200 AND average > 29.02
Write a SQL query that answers the following question: How many people attended the Scottish Cup on 29.02.2000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (attendance VARCHAR, competition VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_60 WHERE competition = "scottish cup" AND date = "29.02.2000"
Write a SQL query that answers the following question: What was the score of the league cup in the 2007-08 season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (score VARCHAR, competition VARCHAR, season VARCHAR)
SELECT score FROM table_name_90 WHERE competition = "league cup" AND season = "2007-08"
Write a SQL query that answers the following question: What is the attendance in the game in the 2010-11 season, when the score was 2–0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (attendance INTEGER, season VARCHAR, score VARCHAR)
SELECT MIN(attendance) FROM table_name_39 WHERE season = "2010-11" AND score = "2–0"
Write a SQL query that answers the following question: What team was in 1st plate in a year later than 1956?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (year INTEGER)
SELECT 1 AS st_place_team FROM table_name_84 WHERE year > 1956
Write a SQL query that answers the following question: Which base has a company of Theatro Technis Karolos Koun?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (base VARCHAR, company VARCHAR)
SELECT base FROM table_name_59 WHERE company = "theatro technis karolos koun"
Write a SQL query that answers the following question: Which company has an author of Aristophanes and play of Plutus?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (company VARCHAR, author VARCHAR, play VARCHAR)
SELECT company FROM table_name_74 WHERE author = "aristophanes" AND play = "plutus"
Write a SQL query that answers the following question: Which author has a company of the Semeio Theatre?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (author VARCHAR, company VARCHAR)
SELECT author FROM table_name_22 WHERE company = "semeio theatre"
Write a SQL query that answers the following question: Which play was done by the Radu Stanca National Theatre company?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (play VARCHAR, company VARCHAR)
SELECT play FROM table_name_47 WHERE company = "radu stanca national theatre"
Write a SQL query that answers the following question: Which play had a base of Aosta?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (play VARCHAR, base VARCHAR)
SELECT play FROM table_name_96 WHERE base = "aosta"
Write a SQL query that answers the following question: What is the country of the play based in Athens at the Attis Theatre company?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (country VARCHAR, base VARCHAR, company VARCHAR)
SELECT country FROM table_name_33 WHERE base = "athens" AND company = "attis theatre"
Write a SQL query that answers the following question: Which Class has a Quantity larger than 96?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (class VARCHAR, quantity INTEGER)
SELECT class FROM table_name_14 WHERE quantity > 96
Write a SQL query that answers the following question: How much Quantity has a Type of 1′c1′ h2t?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (quantity VARCHAR, type VARCHAR)
SELECT COUNT(quantity) FROM table_name_11 WHERE type = "1′c1′ h2t"
Write a SQL query that answers the following question: Which Class has a Type of 1′c n2t?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (class VARCHAR, type VARCHAR)
SELECT class FROM table_name_85 WHERE type = "1′c n2t"
Write a SQL query that answers the following question: Which Year(s) of manufacture has a Quantity larger than 39, and a Type of 1′c1′ h2t?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (year_s__of_manufacture VARCHAR, quantity VARCHAR, type VARCHAR)
SELECT year_s__of_manufacture FROM table_name_90 WHERE quantity > 39 AND type = "1′c1′ h2t"
Write a SQL query that answers the following question: Which Year(s) of manufacture has a Quantity of 2, and a Type of b n2t?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (year_s__of_manufacture VARCHAR, quantity VARCHAR, type VARCHAR)
SELECT year_s__of_manufacture FROM table_name_13 WHERE quantity = 2 AND type = "b n2t"
Write a SQL query that answers the following question: what is the highest place when lost is more than 4, points is less than 18 and team is Team of atlético veragüense?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (place INTEGER, team VARCHAR, lost VARCHAR, points VARCHAR)
SELECT MAX(place) FROM table_name_18 WHERE lost > 4 AND points < 18 AND team = "atlético veragüense"
Write a SQL query that answers the following question: what is the least lost when the place is higher than 4, goals scored is 12 and points is more than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (lost INTEGER, points VARCHAR, place VARCHAR, goals_scored VARCHAR)
SELECT MIN(lost) FROM table_name_72 WHERE place > 4 AND goals_scored = 12 AND points > 4
Write a SQL query that answers the following question: how many times is the team tauro and played less than 18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (place VARCHAR, team VARCHAR, played VARCHAR)
SELECT COUNT(place) FROM table_name_85 WHERE team = "tauro" AND played < 18
Write a SQL query that answers the following question: what is the least played when points is 36 and place is more than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (played INTEGER, points VARCHAR, place VARCHAR)
SELECT MIN(played) FROM table_name_39 WHERE points = 36 AND place > 2
Write a SQL query that answers the following question: what is the average points when goals conceded is 14 and goals scored is less than 32?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (points INTEGER, goals_conceded VARCHAR, goals_scored VARCHAR)
SELECT AVG(points) FROM table_name_97 WHERE goals_conceded = 14 AND goals_scored < 32
Write a SQL query that answers the following question: Playing against the Seattle Seahawks in a week after week 1 before 69,149 people what was the result of the game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (result VARCHAR, opponent VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_63 WHERE week > 1 AND attendance = "69,149" AND opponent = "seattle seahawks"
Write a SQL query that answers the following question: How many weeks in total has bye as the date?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (week VARCHAR, date VARCHAR)
SELECT COUNT(week) FROM table_name_23 WHERE date = "bye"
Write a SQL query that answers the following question: What country does Tiger Woods come from?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_58 WHERE player = "tiger woods"
Write a SQL query that answers the following question: What's the Ri Song-Hui when the olympic record is the world record and snatch was snatch?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (ri_song_hui___prk__ VARCHAR, world_record VARCHAR)
SELECT ri_song_hui___prk__ FROM table_name_49 WHERE world_record = "olympic record" AND "snatch" = "snatch"
Write a SQL query that answers the following question: What's the 102kg when the Ri Song-Hui was 226kg?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (ri_song_hui___prk__ VARCHAR)
SELECT 102 AS kg FROM table_name_56 WHERE ri_song_hui___prk__ = "226kg"
Write a SQL query that answers the following question: What's the 102kg when the snatch was snatch and the olympic record was the world record?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (world_record VARCHAR)
SELECT 102 AS kg FROM table_name_56 WHERE world_record = "olympic record" AND "snatch" = "snatch"
Write a SQL query that answers the following question: What was the average pick made by the Texas Rangers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (pick INTEGER, team VARCHAR)
SELECT AVG(pick) FROM table_name_82 WHERE team = "texas rangers"
Write a SQL query that answers the following question: What was the home town of Bob Geren, picked by the San Diego Padres?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (hometown_school VARCHAR, team VARCHAR, player VARCHAR)
SELECT hometown_school FROM table_name_18 WHERE team = "san diego padres" AND player = "bob geren"
Write a SQL query that answers the following question: What was the position of Jon Perlman?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_94 WHERE player = "jon perlman"
Write a SQL query that answers the following question: What college has a pick smaller than 87 for the position of tackle?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (college VARCHAR, position VARCHAR, pick VARCHAR)
SELECT college FROM table_name_73 WHERE position = "tackle" AND pick < 87
Write a SQL query that answers the following question: What college had the pick of 85?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (college VARCHAR, pick VARCHAR)
SELECT college FROM table_name_51 WHERE pick = 85
Write a SQL query that answers the following question: What are the least losses of Mortlake having less than 970 against?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (losses INTEGER, club VARCHAR, against VARCHAR)
SELECT MIN(losses) FROM table_name_96 WHERE club = "mortlake" AND against < 970
Write a SQL query that answers the following question: What's the total against when the draws are more than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (against VARCHAR, draws INTEGER)
SELECT COUNT(against) FROM table_name_30 WHERE draws > 0
Write a SQL query that answers the following question: What's the total wins when the draws are less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (wins VARCHAR, draws INTEGER)
SELECT COUNT(wins) FROM table_name_92 WHERE draws < 0
Write a SQL query that answers the following question: What's the least against number for Cobden with draws more than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (against INTEGER, club VARCHAR, draws VARCHAR)
SELECT MIN(against) FROM table_name_50 WHERE club = "cobden" AND draws > 0
Write a SQL query that answers the following question: What's the most against when the draws are more than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (against INTEGER, draws INTEGER)
SELECT MAX(against) FROM table_name_43 WHERE draws > 0
Write a SQL query that answers the following question: What are the total wins when there are 1261 against?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (wins INTEGER, against VARCHAR)
SELECT SUM(wins) FROM table_name_46 WHERE against = 1261
Write a SQL query that answers the following question: What is the notes entry for the row with a Time of 1:42.309?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (notes VARCHAR, time VARCHAR)
SELECT notes FROM table_name_33 WHERE time = "1:42.309"
Write a SQL query that answers the following question: What is the rank for China?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (rank INTEGER, country VARCHAR)
SELECT SUM(rank) FROM table_name_96 WHERE country = "china"
Write a SQL query that answers the following question: What is the time for Cuba, with a notes entry of QS?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (time VARCHAR, notes VARCHAR, country VARCHAR)
SELECT time FROM table_name_54 WHERE notes = "qs" AND country = "cuba"
Write a SQL query that answers the following question: What is the Week number on October 10, 1976?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (week VARCHAR, date VARCHAR)
SELECT COUNT(week) FROM table_name_17 WHERE date = "october 10, 1976"
Write a SQL query that answers the following question: What is the Date of the game with a Result of L 33–14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_89 WHERE result = "l 33–14"
Write a SQL query that answers the following question: The Major third of D has what for the Augmented fifth?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (augmented_fifth VARCHAR, major_third VARCHAR)
SELECT augmented_fifth FROM table_name_48 WHERE major_third = "d"
Write a SQL query that answers the following question: A major third of C has what listed for the Minor seventh?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (minor_seventh VARCHAR, major_third VARCHAR)
SELECT minor_seventh FROM table_name_29 WHERE major_third = "c"
Write a SQL query that answers the following question: What is the listed chord for a Minor seventh of F?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (chord VARCHAR, minor_seventh VARCHAR)
SELECT chord FROM table_name_23 WHERE minor_seventh = "f"
Write a SQL query that answers the following question: Which Episode has a Rank of 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (episode VARCHAR, rank VARCHAR)
SELECT episode FROM table_name_71 WHERE rank = 1
Write a SQL query that answers the following question: Where was adac rally deutschland's rally HQ?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (rally_hq VARCHAR, rally_name VARCHAR)
SELECT rally_hq FROM table_name_62 WHERE rally_name = "adac rally deutschland"
Write a SQL query that answers the following question: Where was the Rally HQ for Round 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (rally_hq VARCHAR, round VARCHAR)
SELECT rally_hq FROM table_name_9 WHERE round = 1
Write a SQL query that answers the following question: Which Support Category had a Round score of 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (support_category VARCHAR, round VARCHAR)
SELECT support_category FROM table_name_67 WHERE round = 9
Write a SQL query that answers the following question: What Surface had a Rally HQ of salou?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (surface VARCHAR, rally_hq VARCHAR)
SELECT surface FROM table_name_58 WHERE rally_hq = "salou"
Write a SQL query that answers the following question: What is the lowest lane in the Czech Republic and a time larger than 21.05?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (lane INTEGER, nationality VARCHAR, time VARCHAR)
SELECT MIN(lane) FROM table_name_85 WHERE nationality = "czech republic" AND time > 21.05
Write a SQL query that answers the following question: What is the highest lane with a rank larger than 2 in Guyana?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (lane INTEGER, rank VARCHAR, nationality VARCHAR)
SELECT MAX(lane) FROM table_name_31 WHERE rank > 2 AND nationality = "guyana"
Write a SQL query that answers the following question: What is the sum rank of Solomon Bayoh when his time was smaller than 22.16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (rank INTEGER, athlete VARCHAR, time VARCHAR)
SELECT SUM(rank) FROM table_name_61 WHERE athlete = "solomon bayoh" AND time < 22.16
Write a SQL query that answers the following question: Who is the artist of the album Soul?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (artist VARCHAR, album VARCHAR)
SELECT artist FROM table_name_18 WHERE album = "soul"
Write a SQL query that answers the following question: who is the athlete when the time is less than 11.13 and the country is belgium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (athlete VARCHAR, time VARCHAR, country VARCHAR)
SELECT athlete FROM table_name_51 WHERE time < 11.13 AND country = "belgium"
Write a SQL query that answers the following question: who is the athlete when the rank is less than 13, time more than 11.13, country is bahamas and the heat more than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (athlete VARCHAR, heat VARCHAR, country VARCHAR, rank VARCHAR, time VARCHAR)
SELECT athlete FROM table_name_33 WHERE rank < 13 AND time > 11.13 AND country = "bahamas" AND heat > 2
Write a SQL query that answers the following question: what is the heat when the athlete is anita pistone?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (heat INTEGER, athlete VARCHAR)
SELECT SUM(heat) FROM table_name_89 WHERE athlete = "anita pistone"
Write a SQL query that answers the following question: how many times is the rank more than 29, the athlete is barbara pierre and the heat less than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (time VARCHAR, heat VARCHAR, rank VARCHAR, athlete VARCHAR)
SELECT COUNT(time) FROM table_name_8 WHERE rank > 29 AND athlete = "barbara pierre" AND heat < 5
Write a SQL query that answers the following question: Which IHSAA Class has a Location of linton?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (ihsaa_class VARCHAR, location VARCHAR)
SELECT ihsaa_class FROM table_name_83 WHERE location = "linton"
Write a SQL query that answers the following question: What is the sum of matches played for teams with more than 10 losses and under 5 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (played INTEGER, lost VARCHAR, points VARCHAR)
SELECT SUM(played) FROM table_name_86 WHERE lost > 10 AND points < 5
Write a SQL query that answers the following question: What is the total number of positions for teams with more than 5 points, 3 draws, and under 2 losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (position VARCHAR, lost VARCHAR, points VARCHAR, drawn VARCHAR)
SELECT COUNT(position) FROM table_name_56 WHERE points > 5 AND drawn = 3 AND lost < 2
Write a SQL query that answers the following question: What is the average number of losses for teams with under 4 losses and under 21 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (drawn INTEGER, lost VARCHAR, points VARCHAR)
SELECT AVG(drawn) FROM table_name_95 WHERE lost < 4 AND points < 21
Write a SQL query that answers the following question: What is the home team at the game with an Attendance of 2,029?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (home_team VARCHAR, attendance VARCHAR)
SELECT home_team FROM table_name_85 WHERE attendance = "2,029"
Write a SQL query that answers the following question: What is the away team at the game with an Attendance of 1,730?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (away_team VARCHAR, attendance VARCHAR)
SELECT away_team FROM table_name_73 WHERE attendance = "1,730"
Write a SQL query that answers the following question: What is the away team at the game with a Tie no of 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (away_team VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_name_18 WHERE tie_no = "2"
Write a SQL query that answers the following question: What F/Laps listing has entries of n/a Points, 1 Poles, and 0 Wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (f_laps VARCHAR, wins VARCHAR, points VARCHAR, poles VARCHAR)
SELECT f_laps FROM table_name_94 WHERE points = "n/a" AND poles = "1" AND wins = "0"
Write a SQL query that answers the following question: What Series has a season that is older than 2003 with a Podiums entry of 1 and a Points entry that is n/a?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (series VARCHAR, points VARCHAR, season VARCHAR, podiums VARCHAR)
SELECT series FROM table_name_96 WHERE season < 2003 AND podiums = "1" AND points = "n/a"
Write a SQL query that answers the following question: What Podiums listing has a World Rally Championship series entry?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (podiums VARCHAR, series VARCHAR)
SELECT podiums FROM table_name_74 WHERE series = "world rally championship"
Write a SQL query that answers the following question: What races have n/a Points, 0 Wins, and 6th Position entries?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (races VARCHAR, position VARCHAR, points VARCHAR, wins VARCHAR)
SELECT races FROM table_name_15 WHERE points = "n/a" AND wins = "0" AND position = "6th"
Write a SQL query that answers the following question: What is the most recent season for the Prema Powerteam with a Masters of Formula Three series?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (season INTEGER, team VARCHAR, series VARCHAR)
SELECT MAX(season) FROM table_name_34 WHERE team = "prema powerteam" AND series = "masters of formula three"