Simple Question (Direct)
Simple Question
Q3772035
P57
Q502895
USER
Which person directed Latin Lovers ?
(Q3772035,P57,c(Q502895))
action filter_type
action find
entity Q3772035
relation P57
type Q502895
['Q3772035', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q3772035 property:P57 ?u . ?u rdf:type ontology:Q502895 }
Latin Lovers
action filter_type
action find
entity Latin Lovers
relation director
type common name
['Latin Lovers', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Latin_Lovers property:director ?u . ?u rdf:type ontology:common_name }
[]
common name
Q365012
SYSTEM
Mario Costa
Q365012
(Q3772035,P57,c(Q502895))
action filter_type
action find
entity Q3772035
relation P57
type Q502895
[ANSWER] directed Latin Lovers
['Q3772035', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q3772035 property:P57 ?u . ?u rdf:type ontology:Q502895 }
Mario Costa
Mario Costa directed Latin Lovers
Mario Costa
action filter_type
action find
entity Latin Lovers
relation director
type common name
['Latin Lovers', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Latin_Lovers property:director ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3772035
P2554
Q502895
USER
Who is the production designer of Latin Lovers ?
(Q3772035,P2554,c(Q502895))
action filter_type
action find
entity Q3772035
relation P2554
type Q502895
['Q3772035', 'P2554', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q3772035 property:P2554 ?g . ?g rdf:type ontology:Q502895 }
Latin Lovers
action filter_type
action find
entity Latin Lovers
relation production designer
type common name
['Latin Lovers', 'production designer', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Latin_Lovers property:production_designer ?g . ?g rdf:type ontology:common_name }
[]
common name
Q3623772
SYSTEM
Arrigo Equini
Q3623772
(Q3772035,P2554,c(Q502895))
action filter_type
action find
entity Q3772035
relation P2554
type Q502895
The production designer of Latin Lovers is the [ANSWER]
['Q3772035', 'P2554', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q3772035 property:P2554 ?g . ?g rdf:type ontology:Q502895 }
Arrigo Equini
The production designer of Latin Lovers is the Arrigo Equini
Arrigo Equini
action filter_type
action find
entity Latin Lovers
relation production designer
type common name
['Latin Lovers', 'production designer', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Latin_Lovers property:production_designer ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3772035
P58
Q502895
USER
Who were the screenwriters for that work of art ?
(Q3623772,P58,c(Q502895))
action filter_type
action find
entity Q3772035
relation P58
type Q502895
['Q3623772', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q3772035 property:P58 ?w . ?w rdf:type ontology:Q502895 }
Latin Lovers
action filter_type
action find
entity Latin Lovers
relation screenwriter
type common name
['Arrigo Equini', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Latin_Lovers property:screenwriter ?w . ?w rdf:type ontology:common_name }
[]
common name
Q1526178 Q993165
SYSTEM
Giovanni Grimaldi, Bruno Corbucci
Q1526178 Q993165
(Q3623772,P58,c(Q502895))
action filter_type
action find
entity Q3772035
relation P58
type Q502895
The screenwriters for that work of art were [ANSWERS]
['Q3623772', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q3772035 property:P58 ?w . ?w rdf:type ontology:Q502895 }
Giovanni Grimaldi Bruno Corbucci
The screenwriters for that work of art were Giovanni Grimaldi and Bruno Corbucci
Giovanni Grimaldi Bruno Corbucci
action filter_type
action find
entity Latin Lovers
relation screenwriter
type common name
['Arrigo Equini', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Latin_Lovers property:screenwriter ?w . ?w rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q3235151
P725
Q502895 Q15961987
USER
Which television genres had less number of people as the dubbing artist than VeggieTales ?
(c(Q15961987),P725,c(Q502895))
action less
action find_tuple_counts
relation P725
type Q15961987
type Q502895
action count
action filter_type
action find
entity Q3235151
relation P725
type Q502895
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Q3235151 property:P725 ?s . ?s rdf:type ontology:Q502895 } } . FILTER ( ?h < ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?h ) WHERE { ?n property:P725 ?o . ?n rdf:type ontology:Q15961987 . ?o rdf:type ontology:Q502895 } GROUP BY ?n } }
VeggieTales
action less
action find_tuple_counts
relation voice actor
type television genre
type common name
action count
action filter_type
action find
entity VeggieTales
relation voice actor
type common name
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:VeggieTales property:voice_actor ?s . ?s rdf:type ontology:common_name } } . FILTER ( ?h < ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?h ) WHERE { ?n property:voice_actor ?o . ?n rdf:type ontology:television_genre . ?o rdf:type ontology:common_name } GROUP BY ?n } }
[]
common name television genre
Q11572 Q847219 Q917543
SYSTEM
Avatar: The Last Airbender, Pururun! Shizuku-chan, The Garfield Show
Q11572 Q847219 Q917543
(c(Q15961987),P725,c(Q502895))
action less
action find_tuple_counts
relation P725
type Q15961987
type Q502895
action count
action filter_type
action find
entity Q3235151
relation P725
type Q502895
[ANSWERS] had less number of people as the dubbing artist than VeggieTales
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Q3235151 property:P725 ?s . ?s rdf:type ontology:Q502895 } } . FILTER ( ?h < ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?h ) WHERE { ?n property:P725 ?o . ?n rdf:type ontology:Q15961987 . ?o rdf:type ontology:Q502895 } GROUP BY ?n } }
Avatar: The Last Airbender Pururun! Shizuku-chan The Garfield Show
Avatar: The Last Airbender, Pururun! Shizuku-chan and The Garfield Show had less number of people as the dubbing artist than VeggieTales
Avatar: The Last Airbender Pururun! Shizuku-chan The Garfield Show
action less
action find_tuple_counts
relation voice actor
type television genre
type common name
action count
action filter_type
action find
entity VeggieTales
relation voice actor
type common name
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:VeggieTales property:voice_actor ?s . ?s rdf:type ontology:common_name } } . FILTER ( ?h < ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?h ) WHERE { ?n property:voice_actor ?o . ?n rdf:type ontology:television_genre . ?o rdf:type ontology:common_name } GROUP BY ?n } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q2750339
P725
Q502895 Q15961987
USER
And also tell me about Hellsing Ultimate?
(c(Q15961987),P725,c(Q502895))
action less
action find_tuple_counts
relation P725
type Q15961987
type Q502895
action count
action filter_type
action find
entity Q2750339
relation P725
type Q502895
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?b ) AS ?w ) WHERE { ?x rdf:type ontology:Q15961987 . ?b rdf:type ontology:Q502895 . ?x property:P725 ?b } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h rdf:type ontology:Q502895 . resource:Q2750339 property:P725 ?h } } . FILTER ( ?w < ?o ) }
Hellsing Ultimate
action less
action find_tuple_counts
relation voice actor
type television genre
type common name
action count
action filter_type
action find
entity Hellsing Ultimate
relation voice actor
type common name
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?b ) AS ?w ) WHERE { ?x rdf:type ontology:television_genre . ?b rdf:type ontology:common_name . ?x property:voice_actor ?b } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h rdf:type ontology:common_name . resource:Hellsing_Ultimate property:voice_actor ?h } } . FILTER ( ?w < ?o ) }
[]
common name television genre
Q11572 Q576501 Q917543
SYSTEM
Avatar: The Last Airbender, Garfield and Friends, The Garfield Show
Q11572 Q3235151 Q576501 Q847219 Q753848 Q917543
(c(Q15961987),P725,c(Q502895))
action less
action find_tuple_counts
relation P725
type Q15961987
type Q502895
action count
action filter_type
action find
entity Q2750339
relation P725
type Q502895
[ANSWERS]
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?b ) AS ?w ) WHERE { ?x rdf:type ontology:Q15961987 . ?b rdf:type ontology:Q502895 . ?x property:P725 ?b } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h rdf:type ontology:Q502895 . resource:Q2750339 property:P725 ?h } } . FILTER ( ?w < ?o ) }
Avatar: The Last Airbender VeggieTales Garfield and Friends Pururun! Shizuku-chan TaleSpin The Garfield Show
Avatar: The Last Airbender Garfield and Friends The Garfield Show
action less
action find_tuple_counts
relation voice actor
type television genre
type common name
action count
action filter_type
action find
entity Hellsing Ultimate
relation voice actor
type common name
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?b ) AS ?w ) WHERE { ?x rdf:type ontology:television_genre . ?b rdf:type ontology:common_name . ?x property:voice_actor ?b } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h rdf:type ontology:common_name . resource:Hellsing_Ultimate property:voice_actor ?h } } . FILTER ( ?w < ?o ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q11572 Q2616121
P86
Q502895
USER
How many people did the compostion for Avatar: The Last Airbender or Sonata for Cello and Piano in G minor, Op. 65 ?
(Q11572,P86,c(Q502895)) (Q2616121,P86,c(Q502895))
action count
action union
action filter_type
action find
entity Q11572
relation P86
type Q502895
action filter_type
action find
entity Q2616121
relation P86
type Q502895
['Q11572', 'P86', {'concept': 'Q502895'}] ['Q2616121', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { resource:Q11572 property:P86 ?w . ?w rdf:type ontology:Q502895 } UNION { resource:Q2616121 property:P86 ?w . ?w rdf:type ontology:Q502895 } }
Avatar: The Last Airbender Sonata for Cello and Piano in G minor, Op. 65
action count
action union
action filter_type
action find
entity Avatar: The Last Airbender
relation composer
type common name
action filter_type
action find
entity Sonata for Cello and Piano in G minor, Op. 65
relation composer
type common name
['Avatar: The Last Airbender', 'composer', {'concept': 'common name'}] ['Sonata for Cello and Piano in G minor, Op. 65', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { resource:Avatar:_The_Last_Airbender property:composer ?w . ?w rdf:type ontology:common_name } UNION { resource:Sonata_for_Cello_and_Piano_in_G_minor,_Op._65 property:composer ?w . ?w rdf:type ontology:common_name } }
[]
common name
SYSTEM
2
Q3247705 Q1268
(Q11572,P86,c(Q502895)) (Q2616121,P86,c(Q502895))
action count
action union
action filter_type
action find
entity Q11572
relation P86
type Q502895
action filter_type
action find
entity Q2616121
relation P86
type Q502895
[ANSWER]
['Q11572', 'P86', {'concept': 'Q502895'}] ['Q2616121', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { resource:Q11572 property:P86 ?w . ?w rdf:type ontology:Q502895 } UNION { resource:Q2616121 property:P86 ?w . ?w rdf:type ontology:Q502895 } }
Jeremy Zuckerman Frédéric Chopin
2
action count
action union
action filter_type
action find
entity Avatar: The Last Airbender
relation composer
type common name
action filter_type
action find
entity Sonata for Cello and Piano in G minor, Op. 65
relation composer
type common name
['Avatar: The Last Airbender', 'composer', {'concept': 'common name'}] ['Sonata for Cello and Piano in G minor, Op. 65', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { resource:Avatar:_The_Last_Airbender property:composer ?w . ?w rdf:type ontology:common_name } UNION { resource:Sonata_for_Cello_and_Piano_in_G_minor,_Op._65 property:composer ?w . ?w rdf:type ontology:common_name } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1441
Q15961987 Q3895768
USER
Which fictional locations are present in min number of television genres ?
(c(Q3895768),P1441,c(Q15961987))
action argmin
action find_tuple_counts
relation P1441
type Q3895768
type Q15961987
[{'concept': 'Q3895768'}, 'P1441', {'concept': 'Q15961987'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?n ) { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?w ) WHERE { ?m property:P1441 ?d . ?m rdf:type ontology:Q3895768 . ?d rdf:type ontology:Q15961987 } GROUP BY ?m } } . { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?a ) WHERE { ?p rdf:type ontology:Q3895768 . ?s rdf:type ontology:Q15961987 . ?p property:P1441 ?s } GROUP BY ?p } . FILTER ( ?a = ?n ) }
action argmin
action find_tuple_counts
relation present in work
type fictional location
type television genre
[{'concept': 'fictional location'}, 'present in work', {'concept': 'television genre'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?n ) { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?w ) WHERE { ?m property:present_in_work ?d . ?m rdf:type ontology:fictional_location . ?d rdf:type ontology:television_genre } GROUP BY ?m } } . { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?a ) WHERE { ?p rdf:type ontology:fictional_location . ?s rdf:type ontology:television_genre . ?p property:present_in_work ?s } GROUP BY ?p } . FILTER ( ?a = ?n ) }
[]
television genre fictional location
Q202886 Q25991682 Q26920597
SYSTEM
Mordor, Route 2, Route 12
Q1306534 Q24140376 Q4535333 Q27334275 Q27334375 Q2372432 Q27333795 Q5138976 Q368572 Q27334373 Q5034806 Q24387968 Q931583 Q5031960 Q9274482 Q26964268 Q15706810 Q26995312 Q1234628 Q17238797 Q1772976 Q27333858 Q24131920 Q923051 Q259410 Q5479343 Q20244992 Q3236023 Q5984960 Q8240859 Q26920607 Q26920606 Q26920605 Q26920604 Q3078960 Q26920602 Q26920601 Q26920600 Q26760958 Q11903265 Q11908154 Q19753420 Q25991682 Q19595262 Q717079 Q27334363 Q27781791 Q5820519 Q2014805 Q723271 Q26964271 Q2722222 Q20267163 Q23826237 Q8458577 Q26964279 Q2193285 Q834656 Q13099569 Q5815259 Q2925567 Q947309 Q6150892 Q2793775 Q13586984 Q27643192 Q27643193 Q3091514 Q15286773 Q27334287 Q218728 Q843151 Q26920612 Q16481554 Q3751838 Q27333847 Q5770908 Q2031367 Q27334283 Q20791988 Q27334352 Q27334350 Q7903141 Q949732 Q18596108 Q26964246 Q15133081 Q26964241 Q2804040 Q18765960 Q3509107 Q2288937 Q12902678 Q3490022 Q26987408 Q27333874 Q6675253 Q25991672 Q27334368 Q27334294 Q3370353 Q3776294 Q16203404 Q26920598 Q26987257 Q26920593 Q26920592 Q26920591 Q26920590 Q26920597 Q26920596 Q26920595 Q26920594 Q2337419 Q1098873 Q3276444 Q1172857 Q1417506 Q27334343 Q202886 Q26964251 Q27333893 Q2328564 Q27334305 Q5500857 Q18763205 Q5086509 Q3299764 Q18417553 Q26964306 Q20861091 Q27333864 Q15133076 Q308659 Q14088252 Q16540960 Q26920611 Q3603731 Q18030322 Q27333869 Q1877267 Q26920588 Q26920589 Q3402263 Q26964298 Q11800584 Q2603177 Q7636097 Q15133086 Q15133084 Q3360786 Q6796971 Q26964225 Q20085723 Q14752002 Q27333887 Q1961610 Q1273975 Q27334335 Q26964337 Q26713189 Q26964335 Q850186 Q18761625 Q2634165 Q3745924 Q26922992 Q6160265 Q3160818 Q2258963 Q27333810 Q13231336 Q898585 Q3511866 Q1751472 Q26964293 Q2730097 Q1781719 Q1975407 Q5614271 Q46289 Q16382515 Q3434365 Q26964237 Q26964234 Q26920608 Q27334323 Q26964323 Q12013570 Q27333818 Q26985022 Q44826 Q9311957 Q745173 Q14834627 Q26920603 Q26964245 Q18763210 Q3564892 Q3553489 Q2353174 Q3490968 Q27334313 Q1698465 Q2068808 Q21116831 Q3513524 Q27334258 Q27334254 Q2345258 Q18030394 Q11392416 Q2997950 Q27334316 Q26964288 Q3717834 Q19414239 Q27334310 Q2325089 Q3591950 Q632806 Q3352887 Q3858317 Q3858316 Q25991635 Q3881878 Q2351583 Q26995318 Q15133082 Q26995314 Q1043045 Q26995316 Q13221630 Q1291432 Q1066081 Q6470774 Q15133099 Q3319549 Q2307359 Q27333832 Q3200314 Q15133090 Q26964284 Q18367086 Q7887172 Q20822660 Q27334260 Q26964212 Q7156285 Q3017298 Q27334268 Q3647114 Q13222057 Q22956316 Q3482551 Q5318794 Q26964342 Q1991162 Q22011225 Q3510506 Q15133079 Q7116408 Q9066331 Q19595301 Q3436359 Q26920609 Q27333826 Q20820678 Q3313001 Q590524 Q390301 Q2979245 Q617964 Q26920599 Q19819200 Q3122592 Q27334327
(c(Q3895768),P1441,c(Q15961987))
action argmin
action find_tuple_counts
relation P1441
type Q3895768
type Q15961987
[ANSWERS] are present in min number of television genres
[{'concept': 'Q3895768'}, 'P1441', {'concept': 'Q15961987'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?n ) { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?w ) WHERE { ?m property:P1441 ?d . ?m rdf:type ontology:Q3895768 . ?d rdf:type ontology:Q15961987 } GROUP BY ?m } } . { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?a ) WHERE { ?p rdf:type ontology:Q3895768 . ?s rdf:type ontology:Q15961987 . ?p property:P1441 ?s } GROUP BY ?p } . FILTER ( ?a = ?n ) }
Avonlea Bunnyburrow Yuryatin Route 117 Route 134 Überwald Route 101 Cobra Island Valinor Route 133 Cape Flattery Zootopia Phatt Island Candlekeep Gont Route 37 Pandaria Victory Road Angband Airan Island Tol Eressëa Route 107 Puente Antiguo Brobdingnag Lagado Hill of Guard L-space Dalelands Lut Gholein Balnibarbi Route 23 Route 22 Route 20 Route 19 Formenos Route 17 Route 16 Route 15 Wakanda Hornburg Baratària Glimmerdagg Route 2 Lesser Cloud Isengard Route 131 New Bordeaux Eithel Ivrin Dorthonion Liberty City Route 38 Meduseld Borogravia Equatorial Kundu Muntab Route 39 Amon Lhaw Booty Island Hyrule Durthang Brimstone Umbar Towers of the Teeth Shell Cottage Luskan Aether Paradise Melemele Sao Rico Far Far Away Route 119 Shire Barad-dûr Route 28 Galma Rammas Echor Route 106 Minas Tirith citadel Baldur's Gate Route 118 Kharé Route 130 Route 129 Chetwood Central City Roarton Route 35 Goldenrod City Route 33 San Theodoros Khauran Ephebe Brethil Zembla Klatch Cliff Edge Gate Route 110 Looking-Glass Land Route 21 Route 132 Route 120 Eithel Sirion Greed Island Land of Fire Route 13 Mt. Mortar Route 8 Route 7 Route 6 Route 5 Route 12 Route 11 Route 10 Route 9 Eurasia Andúnië Little Hangleton Vice City Fangorn Route 128 Mordor Route 36 Route 112 Ankh-Morpork Route 121 Freedonia Xapur Charming Sodor Orbajosa Route 44 Land of Wind Route 108 Azalea Town Lothlórien Himring Dor-Cúarthol Route 27 Water 7 New New York Route 109 Morrowland Route 3 Route 4 Wonderland Route 43 Last Bridge Dunharrow Suldanessellar Mahogany Town Dark Cave Number 12, Grimmauld Place Mayberry Route 30 Tashbaan nation of Nineteen Eighty-Four Route 111 Emerald City Eastasia Route 127 Route 47 Abacus Valley Route 46 Kalimdor Afghulistan Dor-lómin Cianwood City Rock Tunnel Vendhya Jambalaya Island Salem Route 102 Quirm Isla Nublar T'u Lung Borduria Route 42 Little Norton Orthanc San Lorenzo Silver Millennium Mirkwood Amn Shrieking Shack Route 32 Route 31 Route 24 Route 125 Route 45 Ecruteak City Route 103 Ilex Forest Tarshish Roke Stars Hollow Treasure Island Route 18 Route 34 Keshan Wa Icewind Dale Bretonnia Agatean Empire Route 123 Aman Utumno Neverland Tabot Route 114 Route 113 Menzoberranzan New New York Rokujō-in Waterdeep Route 124 Route 41 Blackthorn City Tol Sirion Route 122 Lustria Evermeet Cair Andros Eleven Kingdoms Minas Malloth Minas Girithlin Route 1 Olivine City Toontown Victory Road Cherrygrove City Victory Road Ravenholm Victory Road Sto Lat Oceania Neverwinter Chamber of Mazarbul Pewter City Lancre Zakkestan Route 105 Kuldahar Violet City Route 40 Woody End Sword Coast Megaton Route 115 Route 29 Pawnee Daventry Route 116 Barad Eithel Genua Graabølle Shou Lung Dylath-Leen Route 48 Erathia High Council Tower XXXX New Bark Town Oz Ramsay Street Groasnachek The Burrow Route 25 Route 104 Antagarich Bedrock Twelve Colonies Northrend Malfoy Manor Blood Island Route 14 Death's domain Gwynedd Route 126
Mordor, Route 2 and Route 12 are present in min number of television genres
Mordor Route 2 Route 12
action argmin
action find_tuple_counts
relation present in work
type fictional location
type television genre
[{'concept': 'fictional location'}, 'present in work', {'concept': 'television genre'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?n ) { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?w ) WHERE { ?m property:present_in_work ?d . ?m rdf:type ontology:fictional_location . ?d rdf:type ontology:television_genre } GROUP BY ?m } } . { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?a ) WHERE { ?p rdf:type ontology:fictional_location . ?s rdf:type ontology:television_genre . ?p property:present_in_work ?s } GROUP BY ?p } . FILTER ( ?a = ?n ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P122
Q28108 Q1307214 Q3895768
USER
How many fictional locations have approximately the same number of political systems or forms of government as the form of government as that fictional location ?
(c(Q3895768),P122,c(Q28108)|c(Q1307214))
[{'concept': 'Q3895768'}, 'P122', [{'concept': 'Q28108'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?j ) { ( ?y ) ( ?x ) } . ?z property:P122 ?j } . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q28108 . ?x rdf:type ontology:Q1307214 }
[{'concept': 'fictional location'}, 'basic form of government', [{'concept': 'political system'}, {'concept': 'form of government'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?j ) { ( ?y ) ( ?x ) } . ?z property:basic_form_of_government ?j } . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:political_system . ?x rdf:type ontology:form_of_government }
[]
political system form of government fictional location
Comparative|Count over More/Less|Mult. entity type|Clarification
Q26920597
SYSTEM
Did you mean Route 12 ?
(c(Q3895768),P122,c(Q28108)|c(Q1307214))
[ANSWER]
[{'concept': 'Q3895768'}, 'P122', [{'concept': 'Q28108'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?j ) { ( ?y ) ( ?x ) } . ?z property:P122 ?j } . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q28108 . ?x rdf:type ontology:Q1307214 }
Did you mean Route 12 ?
Route 12
[{'concept': 'fictional location'}, 'basic form of government', [{'concept': 'political system'}, {'concept': 'form of government'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?j ) { ( ?y ) ( ?x ) } . ?z property:basic_form_of_government ?j } . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:political_system . ?x rdf:type ontology:form_of_government }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Mordor. Could you tell me the answer for that?
(c(Q3895768),P122,c(Q28108)|c(Q1307214))
Q202886
[{'concept': 'Q3895768'}, 'P122', [{'concept': 'Q28108'}, {'concept': 'Q1307214'}]]
[{'concept': 'fictional location'}, 'basic form of government', [{'concept': 'political system'}, {'concept': 'form of government'}]]
[]
SYSTEM
14
Q13134285 Q9356614 Q11733281 Q9305106 Q202886 Q11789749 Q766099 Q1877267 Q11744447 Q11792255 Q9141475 Q11764451 Q9355353 Q9184240
(c(Q3895768),P122,c(Q28108)|c(Q1307214))
[ANSWER]
[{'concept': 'Q3895768'}, 'P122', [{'concept': 'Q28108'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:P122 ?y } UNION { ?z property:P122 ?x } } . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q28108 . ?x rdf:type ontology:Q1307214 }
Cintra Temeria Kaedwen Redania Mordor Narok Wakanda Morrowland Kovir and Poviss Nilfgaard Aedirn Lyria and Rivia Talgar Caingorn
14
[{'concept': 'fictional location'}, 'basic form of government', [{'concept': 'political system'}, {'concept': 'form of government'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:basic_form_of_government ?y } UNION { ?z property:basic_form_of_government ?x } } . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:political_system . ?x rdf:type ontology:form_of_government }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q321423 Q917543
P1441
Q95074
USER
Which fictional characters are featured in The Garfield Show or Law & Order ?
OR((c(Q95074),P1441,Q917543), (c(Q95074),P1441,Q321423))
action filter_type
action union
action find_reverse
entity Q917543
relation P1441
action find_reverse
entity Q321423
relation P1441
type Q95074
{'OR': [[{'concept': 'Q95074'}, 'P1441', 'Q917543'], [{'concept': 'Q95074'}, 'P1441', 'Q321423']]}
SELECT DISTINCT ?z WHERE { { { ?z property:P1441 resource:Q321423 } UNION { ?z property:P1441 resource:Q917543 } } . ?z rdf:type ontology:Q95074 }
Law & Order The Garfield Show
action filter_type
action union
action find_reverse
entity The Garfield Show
relation present in work
action find_reverse
entity Law & Order
relation present in work
type fictional character
{'OR': [[{'concept': 'fictional character'}, 'present in work', 'The Garfield Show'], [{'concept': 'fictional character'}, 'present in work', 'Law & Order']]}
SELECT DISTINCT ?z WHERE { { { ?z property:present_in_work resource:Law_&_Order } UNION { ?z property:present_in_work resource:The_Garfield_Show } } . ?z rdf:type ontology:fictional_character }
[]
fictional character
Q22632078 Q22574125 Q767120 Q22963712 Q18642252 Q22920393 Q4679739 Q5488954 Q22667766 Q22918899
SYSTEM
Some of them are Harriet Doremus, Gordon Schell , Garfield, Judge Slattery , Ed Green,  Lawrence McNeil , Adam Schiff, Frank Pembleton, Larry Webber, Ida Boucher
Q22667766 Q22920393 Q1563605 Q22704783 Q22639397 Q22662710 Q22815270 Q22680746 Q1258832 Q22704578 Q22662910 Q22676997 Q22815289 Q5488954 Q22575669 Q22954181 Q22667769 Q7453142 Q17091262 Q22667716 Q17091303 Q22942677 Q22632078 Q22667655 Q2027579 Q5258647 Q22811316 Q2896246 Q22569437 Q1260848 Q22569435 Q22916071 Q7050120 Q22670064 Q22944502 Q22662736 Q22918940 Q1259668 Q5363288 Q22667232 Q22558853 Q22681149 Q22704600 Q16828991 Q1273691 Q5125241 Q22673800 Q22676813 Q22673804 Q22639342 Q22574835 Q22920042 Q22681232 Q22667733 Q22663697 Q22575689 Q22695835 Q22810667 Q22810666 Q22811249 Q22574125 Q4720598 Q22665424 Q16994517 Q22681163 Q22665429 Q22935353 Q22943372 Q22753109 Q22945709 Q22639293 Q22931288 Q22673501 Q22695901 Q22826094 Q22566728 Q22695866 Q22815430 Q22676786 Q22574134 Q22575696 Q22704338 Q22677387 Q22918899 Q6209874 Q10317241 Q22920202 Q22639366 Q22677173 Q22759773 Q22935233 Q22676762 Q22670012 Q22695911 Q5219408 Q7153279 Q22680710 Q767120 Q22566799 Q22566798 Q22566795 Q22670091 Q22963681 Q1258789 Q4765658 Q18642252 Q22920073 Q1273704 Q22662694 Q22681109 Q22810657 Q22680649 Q22808107 Q22808069 Q7181771 Q22926844 Q1260817 Q22963834 Q16837942 Q22829110 Q4798077 Q22963712 Q4679739 Q22665952 Q4274820 Q22565497 Q22829185 Q22915235 Q22704580 Q22946179 Q16237218 Q22639370 Q22639376
OR((c(Q95074),P1441,Q917543), (c(Q95074),P1441,Q321423))
action filter_type
action union
action find_reverse
entity Q917543
relation P1441
action find_reverse
entity Q321423
relation P1441
type Q95074
[ANSWERS]
{'OR': [[{'concept': 'Q95074'}, 'P1441', 'Q917543'], [{'concept': 'Q95074'}, 'P1441', 'Q321423']]}
SELECT DISTINCT ?z WHERE { { { ?z property:P1441 resource:Q321423 } UNION { ?z property:P1441 resource:Q917543 } } . ?z rdf:type ontology:Q95074 }
Larry Webber  Lawrence McNeil  Emil Skoda Lester Hastings Eric Caffey Herman Mooney Marks Ian Feist Donald Cragen Shawn McNamara Rebecca Steinman Sally Goldman  Stan Shatenstein  Frank Pembleton Assistant M.E. Borak Chuck Rodman Medill  Serena Southerlyn Elizabeth Rodgers Arthur Gold  Jamie Ross Margot Bell Harriet Doremus Walter Schreiber John Munch Jack McCoy Deirdre Powell Benjamin Stone Grace Larkin Abbie Carmichael Richard Berkley Paul Kaylin Nora Lewin Robert Quinn John Sierra Arlene Shrier Charles Powell Rey Curtis Elizabeth Olivet Janis Silver Benjamin Harcourt George Zuckert Helen Brolin Nina Cassady Connie Rubirosa Claire Kincaid Gary Lowenthal Manetti  Douglas Spivack Henry Fillmore Alfred Wentworth Karyn Sasabe Janine Pate Alan Berman Jacob Bloom Carla Lowenstein Adele Diamond Elizabeth Yee Jessica Dobson Donald Van Buren Gordon Schell  Alexandra Borgia Douglas Greer Max Greevey Carla Bowman Randall Welch Kendall Egan Peter Behrens Michele Selig  Terry Sanchez Michael Callahan James Linde Morris Torledsky Norman Rothenberg Gia Shambala Green Elizabeth Mizener Charles Garnett  Francis Dunlap Margaret Barry Jacob Lowenstein Elayne Link Lisa Pongracic Ida Boucher Joe Fontana Lennie Briscoe Andrew Maynard Bill Patton Lanie Stieglitz  Mildred Kaskel  Brian Egan Eric Bertram Joseph Gannon Pamela Jensen Danielle Melnick Paul Robinette Frank Lazar Garfield Julia DeBakey Tony Profaci Judge Marton Irwin Reisman Stan Gillum Kevin Bernard Anita Van Buren Ed Green Colin Fraser Michael Cutter Rebecca Stein Gary Feldman Michael Dobson Sally Bell Marya Levinson Max Hellman Phil Cerreta Deborah Curtis Cyrus Lupo Al Archer Nick Falco Aldo Iannello Arthur Branch Judge Slattery  Adam Schiff Ari Waxman Mike Logan Manuel Leon Marc Kramer Marge Larson Wayne Humphrey Ruth Miller Tim Bayliss Rosalyn Lenz Andrew Barsky
Harriet Doremus, Gordon Schell , Garfield, Judge Slattery , Ed Green, Lawrence McNeil , Adam Schiff, Frank Pembleton, Larry Webber and Ida Boucher are featured in The Garfield Show or Law & Order
Harriet Doremus Gordon Schell  Garfield Judge Slattery  Ed Green  Lawrence McNeil  Adam Schiff Frank Pembleton Larry Webber Ida Boucher
action filter_type
action union
action find_reverse
entity The Garfield Show
relation present in work
action find_reverse
entity Law & Order
relation present in work
type fictional character
{'OR': [[{'concept': 'fictional character'}, 'present in work', 'The Garfield Show'], [{'concept': 'fictional character'}, 'present in work', 'Law & Order']]}
SELECT DISTINCT ?z WHERE { { { ?z property:present_in_work resource:Law_&_Order } UNION { ?z property:present_in_work resource:The_Garfield_Show } } . ?z rdf:type ontology:fictional_character }
[]