Simple Question (Direct)
Simple Question
Q1601612
P1050
Q2057971
USER
Which health problem does Manuel Pérez y Curis have ?
(Q1601612,P1050,c(Q2057971))
action filter_type
action find
entity Q1601612
relation P1050
type Q2057971
['Q1601612', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?w WHERE { resource:Q1601612 property:P1050 ?w . ?w rdf:type ontology:Q2057971 }
Manuel Pérez y Curis
action filter_type
action find
entity Manuel Pérez y Curis
relation medical condition
type health problem
['Manuel Pérez y Curis', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?w WHERE { resource:Manuel_Pérez_y_Curis property:medical_condition ?w . ?w rdf:type ontology:health_problem }
[]
health problem
Q12204
SYSTEM
tuberculosis
Q12204
(Q1601612,P1050,c(Q2057971))
action filter_type
action find
entity Q1601612
relation P1050
type Q2057971
Manuel Pérez y Curis has had [ANSWER]
['Q1601612', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?w WHERE { resource:Q1601612 property:P1050 ?w . ?w rdf:type ontology:Q2057971 }
tuberculosis
Manuel Pérez y Curis has had tuberculosis
tuberculosis
action filter_type
action find
entity Manuel Pérez y Curis
relation medical condition
type health problem
['Manuel Pérez y Curis', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?w WHERE { resource:Manuel_Pérez_y_Curis property:medical_condition ?w . ?w rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12204
P1196
Q502895
USER
Which people have that health problem as death circumstances ?
(c(Q502895),P1196,Q12204)
action filter_type
action find_reverse
entity Q12204
relation P1196
type Q502895
[{'concept': 'Q502895'}, 'P1196', 'Q12204']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . ?u property:P1196 resource:Q12204 }
tuberculosis
action filter_type
action find_reverse
entity tuberculosis
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', 'tuberculosis']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . ?u property:manner_of_death resource:tuberculosis }
[]
common name
Q82083 Q219621
SYSTEM
John Keats, René Laennec
Q82083 Q219621
(c(Q502895),P1196,Q12204)
action filter_type
action find_reverse
entity Q12204
relation P1196
type Q502895
[ANSWERS] have that health problem as death circumstances
[{'concept': 'Q502895'}, 'P1196', 'Q12204']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . ?u property:P1196 resource:Q12204 }
John Keats René Laennec
John Keats and René Laennec have that health problem as death circumstances
John Keats René Laennec
action filter_type
action find_reverse
entity tuberculosis
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', 'tuberculosis']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . ?u property:manner_of_death resource:tuberculosis }
[]
Clarification
Simple Question|Single Entity|Indirect
Q82083
P737
Q502895
USER
Who did that one have an influence on ?
(c(Q502895),P737,Q82083)
action filter_type
action find_reverse
entity Q82083
relation P737
type Q502895
[{'concept': 'Q502895'}, 'P737', 'Q82083']
SELECT DISTINCT ?p WHERE { ?p property:P737 resource:Q82083 . ?p rdf:type ontology:Q502895 }
John Keats
action filter_type
action find_reverse
entity John Keats
relation influenced by
type common name
[{'concept': 'common name'}, 'influenced by', 'John Keats']
SELECT DISTINCT ?p WHERE { ?p property:influenced_by resource:John_Keats . ?p rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q82083
SYSTEM
Did you mean John Keats ?
Q82083 Q219621
(c(Q502895),P737,Q82083) (c(Q502895),P737,Q219621)
[ANSWER]
[{'concept': 'Q502895'}, 'P737', 'Q82083'] [{'concept': 'Q502895'}, 'P737', 'Q219621']
SELECT DISTINCT ?p WHERE { ?p property:P737 resource:Q82083 . ?p rdf:type ontology:Q502895 }
John Keats René Laennec
Did you mean John Keats ?
John Keats
[{'concept': 'common name'}, 'influenced by', 'John Keats'] [{'concept': 'common name'}, 'influenced by', 'René Laennec']
SELECT DISTINCT ?p WHERE { ?p property:influenced_by resource:John_Keats . ?p rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P737,Q82083)
[{'concept': 'Q502895'}, 'P737', 'Q82083']
[{'concept': 'common name'}, 'influenced by', 'John Keats']
[]
Q438164 Q93356 Q313466
SYSTEM
Samuel R. Delany, Seamus Heaney, Michael Chabon
Q168728 Q93356 Q438164 Q313466 Q152513 Q212719
(c(Q502895),P737,Q82083)
action filter_type
action find_reverse
entity Q82083
relation P737
type Q502895
[ANSWERS] that one had an influence on
[{'concept': 'Q502895'}, 'P737', 'Q82083']
SELECT DISTINCT ?p WHERE { ?p property:P737 resource:Q82083 . ?p rdf:type ontology:Q502895 }
Robert Frost Seamus Heaney Samuel R. Delany Michael Chabon Henry Wadsworth Longfellow Wilfred Owen
Samuel R. Delany, Seamus Heaney and Michael Chabon that one had an influence on
Samuel R. Delany Seamus Heaney Michael Chabon
action filter_type
action find_reverse
entity John Keats
relation influenced by
type common name
[{'concept': 'common name'}, 'influenced by', 'John Keats']
SELECT DISTINCT ?p WHERE { ?p property:influenced_by resource:John_Keats . ?p rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q39777
P1303
Q34379 Q502895
USER
How many musical instruments can lesser number of people perform with than maraca ?
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q39777
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?i ) WHERE { ?k property:P1303 ?r . ?k rdf:type ontology:Q502895 . ?r rdf:type ontology:Q34379 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { ?j property:P1303 resource:Q39777 . ?j rdf:type ontology:Q502895 } } . FILTER ( ?i < ?q ) }
maraca
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity maraca
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?i ) WHERE { ?k property:instrument ?r . ?k rdf:type ontology:common_name . ?r rdf:type ontology:musical_instrument } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { ?j property:instrument resource:maraca . ?j rdf:type ontology:common_name } } . FILTER ( ?i < ?q ) }
[]
musical instrument common name
SYSTEM
3
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q39777
relation P1303
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?i ) WHERE { ?k property:P1303 ?r . ?k rdf:type ontology:Q502895 . ?r rdf:type ontology:Q34379 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { ?j property:P1303 resource:Q39777 . ?j rdf:type ontology:Q502895 } } . FILTER ( ?i < ?q ) }
spoon cajón wind instrument
3
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity maraca
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?i ) WHERE { ?k property:instrument ?r . ?k rdf:type ontology:common_name . ?r rdf:type ontology:musical_instrument } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { ?j property:instrument resource:maraca . ?j rdf:type ontology:common_name } } . FILTER ( ?i < ?q ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do exactly 1 person know to play ?
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?t = 1 ) . { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?p } }
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?t = 1 ) . { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?p } }
[]
musical instrument common name
Q1178361 Q1759986 Q816793
SYSTEM
davul, Wurlitzer electric piano, Bendir
Q890073 Q1178361 Q604538 Q2660670 Q39777 Q678090 Q490054 Q873588 Q593995 Q1327500 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q1024685 Q816793 Q244976 Q1179017 Q320341 Q669370 Q290951 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q744831 Q963150 Q16155191 Q644440 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1
Exactly 1 person know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?t = 1 ) . { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?p } }
Body percussion davul Temple block Irish bouzouki maraca Twelve-string guitar Ondioline Jinghu player piano electronic musical instrument Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cabasa Bendir bodhrán Daxophone celesta gusle Kamancheh Hardanger fiddle transverse flute baritone horn morin khuur Timbales Mridangam tenor guitar Saraswati veena Lap steel guitar Kayamb Paraguayan harp
Exactly 1 person know about davul, Wurlitzer electric piano and Bendir
davul Wurlitzer electric piano Bendir
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?t = 1 ) . { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?p } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q438164
P50
Q2342494 Q223393
USER
How many collectables and literary genres were written by Samuel R. Delany ?
(c(Q2342494),P50,Q438164) (c(Q223393),P50,Q438164)
action count
action union
action filter_type
action find_reverse
entity Q438164
relation P50
type Q2342494
action filter_type
action find_reverse
entity Q438164
relation P50
type Q223393
[{'concept': 'Q2342494'}, 'P50', 'Q438164'] [{'concept': 'Q223393'}, 'P50', 'Q438164']
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { { ?x rdf:type ontology:Q223393 . ?x property:P50 resource:Q438164 } UNION { ?x property:P50 resource:Q438164 . ?x rdf:type ontology:Q2342494 } }
Samuel R. Delany
action count
action union
action filter_type
action find_reverse
entity Samuel R. Delany
relation author
type collectable
action filter_type
action find_reverse
entity Samuel R. Delany
relation author
type literary genre
[{'concept': 'collectable'}, 'author', 'Samuel R. Delany'] [{'concept': 'literary genre'}, 'author', 'Samuel R. Delany']
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { { ?x rdf:type ontology:literary_genre . ?x property:author resource:Samuel_R._Delany } UNION { ?x property:author resource:Samuel_R._Delany . ?x rdf:type ontology:collectable } }
[]
collectable literary genre
SYSTEM
42 collectables and 2 literary genres
Q4831111 Q7514581 Q15032739 Q4816679 Q5123996 Q3706366 Q2441281 Q7804959 Q5036954 Q5374131 Q7733225 Q7180327 Q5282912 Q7798485 Q7269155 Q7269154 Q7269157 Q7715400 Q3345309 Q7269153 Q16387291 Q7749324 Q5459277 Q6673724 Q5694851 Q5384529 Q7602353 Q7502157 Q5877236 Q2722309 Q7743200 Q23131363 Q7844314 Q7806558 Q7679339 Q7783710 Q5307472 Q6985290 Q5223372 Q7317313 Q7752439 Q5307474 Q16274950 Q7727162
(c(Q2342494),P50,Q438164) (c(Q223393),P50,Q438164)
action count
action union
action filter_type
action find_reverse
entity Q438164
relation P50
type Q2342494
action filter_type
action find_reverse
entity Q438164
relation P50
type Q223393
[ANSWER]
[{'concept': 'Q2342494'}, 'P50', 'Q438164'] [{'concept': 'Q223393'}, 'P50', 'Q438164']
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { { ?x rdf:type ontology:Q223393 . ?x property:P50 resource:Q438164 } UNION { ?x property:P50 resource:Q438164 . ?x rdf:type ontology:Q2342494 } }
Aye, and Gomorrah Silent Interviews The Towers of Toron Atlantis: Three Tales City of a Thousand Suns Dhalgren The Einstein Intersection Time Considered as a Helix of Semi-Precious Stones Captives of the Flame Empire Star The Fall of the Towers Phallos Distant Stars Through the Valley of the Nest of Spiders Quark/3 Quark/2 Quark/4 The Ballad of Beta-2 Nova Quark/1 Neveryóna The Mad Man Flight from Nevèrÿon Longer Views Heavenly Breakfast Equinox Stars in My Pocket Like Grains of Sand Shorter Views Hogg Babel-17 The Jewels of Aptor Empire Triton Times Square Red, Times Square Blue Tales of Nevèrÿon They Fly at Çiron Driftglass Nebula Winners Thirteen Dark Reflections Return to Nevèrÿon The Motion of Light in Water Driftglass/Starshards Aye, and Gomorrah, and other stories The Complete Nebula Award-Winning Fiction
42 collectables and 2 literary genres
action count
action union
action filter_type
action find_reverse
entity Samuel R. Delany
relation author
type collectable
action filter_type
action find_reverse
entity Samuel R. Delany
relation author
type literary genre
[{'concept': 'collectable'}, 'author', 'Samuel R. Delany'] [{'concept': 'literary genre'}, 'author', 'Samuel R. Delany']
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { { ?x rdf:type ontology:literary_genre . ?x property:author resource:Samuel_R._Delany } UNION { ?x property:author resource:Samuel_R._Delany . ?x rdf:type ontology:collectable } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q93356
P175
Q2031291
USER
Who performed Seamus Heaney ?
(c(Q2031291),P175,Q93356)
action filter_type
action find_reverse
entity Q93356
relation P175
type Q2031291
[{'concept': 'Q2031291'}, 'P175', 'Q93356']
SELECT DISTINCT ?n WHERE { ?n property:P175 resource:Q93356 . ?n rdf:type ontology:Q2031291 }
Seamus Heaney
action filter_type
action find_reverse
entity Seamus Heaney
relation performer
type release
[{'concept': 'release'}, 'performer', 'Seamus Heaney']
SELECT DISTINCT ?n WHERE { ?n property:performer resource:Seamus_Heaney . ?n rdf:type ontology:release }
[]
release
Q7757570 Q7440750
SYSTEM
The Poet & The Piper, Seamus Heaney Collected Poems
Q7757570 Q7440750
(c(Q2031291),P175,Q93356)
action filter_type
action find_reverse
entity Q93356
relation P175
type Q2031291
The The Poet & The Piper and Seamus Heaney collected Poems performed Seamus Heaney
[{'concept': 'Q2031291'}, 'P175', 'Q93356']
SELECT DISTINCT ?n WHERE { ?n property:P175 resource:Q93356 . ?n rdf:type ontology:Q2031291 }
The Poet & The Piper Seamus Heaney Collected Poems
The The Poet & The Piper and Seamus Heaney collected Poems performed Seamus Heaney
The Poet & The Piper Seamus Heaney Collected Poems
action filter_type
action find_reverse
entity Seamus Heaney
relation performer
type release
[{'concept': 'release'}, 'performer', 'Seamus Heaney']
SELECT DISTINCT ?n WHERE { ?n property:performer resource:Seamus_Heaney . ?n rdf:type ontology:release }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q438164
P50
Q2342494
USER
Which collectables were written by Samuel R. Delany ?
(c(Q2342494),P50,Q438164)
action filter_type
action find_reverse
entity Q438164
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q438164']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q2342494 . ?z property:P50 resource:Q438164 }
Samuel R. Delany
action filter_type
action find_reverse
entity Samuel R. Delany
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Samuel R. Delany']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:collectable . ?z property:author resource:Samuel_R._Delany }
[]
collectable
Q5123996 Q5374131 Q7783710
SYSTEM
City of a Thousand Suns, Empire Star, They Fly at Çiron
Q7514581 Q7502157 Q15032739 Q4816679 Q5123996 Q3706366 Q2441281 Q5384529 Q5374131 Q7733225 Q7269157 Q7180327 Q5282912 Q16387291 Q7269155 Q7269154 Q16274950 Q7715400 Q3345309 Q7269153 Q7798485 Q7749324 Q5459277 Q7844314 Q5694851 Q5036954 Q7602353 Q23131363 Q5877236 Q2722309 Q7743200 Q6673724 Q7806558 Q7679339 Q7783710 Q6985290 Q5223372 Q7317313 Q7752439 Q5307474 Q5307472 Q7727162
(c(Q2342494),P50,Q438164)
action filter_type
action find_reverse
entity Q438164
relation P50
type Q2342494
City of a Thousand Suns, Empire Star and They fly at Çiron were written by Samuel R. Delany
[{'concept': 'Q2342494'}, 'P50', 'Q438164']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q2342494 . ?z property:P50 resource:Q438164 }
Silent Interviews Shorter Views The Towers of Toron Atlantis: Three Tales City of a Thousand Suns Dhalgren The Einstein Intersection Equinox Empire Star The Fall of the Towers Quark/4 Phallos Distant Stars Neveryóna Quark/3 Quark/2 Aye, and Gomorrah, and other stories The Ballad of Beta-2 Nova Quark/1 Through the Valley of the Nest of Spiders The Mad Man Flight from Nevèrÿon Triton Heavenly Breakfast Captives of the Flame Stars in My Pocket Like Grains of Sand Empire Hogg Babel-17 The Jewels of Aptor Longer Views Times Square Red, Times Square Blue Tales of Nevèrÿon They Fly at Çiron Nebula Winners Thirteen Dark Reflections Return to Nevèrÿon The Motion of Light in Water Driftglass/Starshards Driftglass The Complete Nebula Award-Winning Fiction
City of a Thousand Suns, Empire Star and They fly at Çiron were written by Samuel R. Delany
City of a Thousand Suns Empire Star They Fly at Çiron
action filter_type
action find_reverse
entity Samuel R. Delany
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Samuel R. Delany']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:collectable . ?z property:author resource:Samuel_R._Delany }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5374131
P495
Q15617994
USER
What is the origin of that collectable ?
(Q5374131,P495,c(Q15617994))
action filter_type
action find
entity Q5374131
relation P495
type Q15617994
['Q5374131', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q5374131 property:P495 ?x . ?x rdf:type ontology:Q15617994 }
Empire Star
action filter_type
action find
entity Empire Star
relation country of origin
type designation for an administrative territorial entity
['Empire Star', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Empire_Star property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q5123996
SYSTEM
Did you mean City of a Thousand Suns ?
Q5123996 Q5374131 Q7783710
(Q5123996,P495,c(Q15617994)) (Q5374131,P495,c(Q15617994)) (Q7783710,P495,c(Q15617994))
[ANSWER]
['Q5123996', 'P495', {'concept': 'Q15617994'}] ['Q5374131', 'P495', {'concept': 'Q15617994'}] ['Q7783710', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q5374131 property:P495 ?x . ?x rdf:type ontology:Q15617994 }
City of a Thousand Suns Empire Star They Fly at Çiron
Did you mean City of a Thousand Suns ?
City of a Thousand Suns
['City of a Thousand Suns', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Empire Star', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['They Fly at Çiron', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Empire_Star property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Empire Star. Could you tell me the answer for that?
(Q5374131,P495,c(Q15617994))
Q5374131
['Q5374131', 'P495', {'concept': 'Q15617994'}]
['Empire Star', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q30
SYSTEM
United States of America
Q30
(Q5374131,P495,c(Q15617994))
action filter_type
action find
entity Q5374131
relation P495
type Q15617994
The origin of that collectable is the [ANSWER]
['Q5374131', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q5374131 property:P495 ?x . ?x rdf:type ontology:Q15617994 }
United States of America
The origin of that collectable is the United States of America
United States of America
action filter_type
action find
entity Empire Star
relation country of origin
type designation for an administrative territorial entity
['Empire Star', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Empire_Star property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P35
Q502895 Q1048835 Q35798
USER
Which people are the heads of state of max number of political territories and executive branches ?
(c(Q1048835)|c(Q35798),P35,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
[[{'concept': 'Q1048835'}, {'concept': 'Q35798'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?h ) WHERE { { ?c rdf:type ontology:Q502895 . ?f rdf:type ontology:Q35798 . ?f property:P35 ?c } UNION { ?f rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q502895 . ?f property:P35 ?c } } GROUP BY ?c } . FILTER ( ?h = ?b ) . { SELECT DISTINCT ( MAX ( ?w ) AS ?b ) { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?w ) WHERE { VALUES ( ?k ) { ( ontology:Q1048835 ) ( ontology:Q35798 ) } . ?z rdf:type ?k } GROUP BY ?x } } }
action argmax
action union
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
[[{'concept': 'political territorial entity'}, {'concept': 'executive branch'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?h ) WHERE { { ?c rdf:type ontology:common_name . ?f rdf:type ontology:executive_branch . ?f property:head_of_state ?c } UNION { ?f rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:common_name . ?f property:head_of_state ?c } } GROUP BY ?c } . FILTER ( ?h = ?b ) . { SELECT DISTINCT ( MAX ( ?w ) AS ?b ) { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?w ) WHERE { VALUES ( ?k ) { ( ontology:political_territorial_entity ) ( ontology:executive_branch ) } . ?z rdf:type ?k } GROUP BY ?x } } }
[]
common name political territorial entity executive branch
Q9682
SYSTEM
Elizabeth II
Q9682
(c(Q1048835)|c(Q35798),P35,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
[ANSWER] is the heads of state of max number of political territories and executive branches
[[{'concept': 'Q1048835'}, {'concept': 'Q35798'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?h ) WHERE { { ?c rdf:type ontology:Q502895 . ?f rdf:type ontology:Q35798 . ?f property:P35 ?c } UNION { ?f rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q502895 . ?f property:P35 ?c } } GROUP BY ?c } . FILTER ( ?h = ?b ) . { SELECT DISTINCT ( MAX ( ?w ) AS ?b ) { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?w ) WHERE { VALUES ( ?k ) { ( ontology:Q1048835 ) ( ontology:Q35798 ) } . ?z rdf:type ?k } GROUP BY ?x } } }
Elizabeth II
Elizabeth II is the heads of state of max number of political territories and executive branches
Elizabeth II
action argmax
action union
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
[[{'concept': 'political territorial entity'}, {'concept': 'executive branch'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?h ) WHERE { { ?c rdf:type ontology:common_name . ?f rdf:type ontology:executive_branch . ?f property:head_of_state ?c } UNION { ?f rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:common_name . ?f property:head_of_state ?c } } GROUP BY ?c } . FILTER ( ?h = ?b ) . { SELECT DISTINCT ( MAX ( ?w ) AS ?b ) { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?w ) WHERE { VALUES ( ?k ) { ( ontology:political_territorial_entity ) ( ontology:executive_branch ) } . ?z rdf:type ?k } GROUP BY ?x } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q15416
USER
Which television programs did around 14 people do the dubbing for ?
(c(Q15416),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q15416
type Q502895
value 14
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?f = 14 ) . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?f ) WHERE { ?g property:P725 ?v . ?v rdf:type ontology:Q502895 . ?g rdf:type ontology:Q15416 } GROUP BY ?g } }
action approx
action find_tuple_counts
relation voice actor
type television program
type common name
value 14
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?f = 14 ) . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?f ) WHERE { ?g property:voice_actor ?v . ?v rdf:type ontology:common_name . ?g rdf:type ontology:television_program } GROUP BY ?g } }
[]
common name television program
Q18571935 Q25000347 Q165515
SYSTEM
The Big O, Pirate Express, 101 Dalmatians: The Series
Q18571935 Q165515 Q25000347 Q18553975 Q17183708
(c(Q15416),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q15416
type Q502895
value 14
Around 14 people did the dubbing for [ANSWERS]
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?f = 14 ) . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?f ) WHERE { ?g property:P725 ?v . ?v rdf:type ontology:Q502895 . ?g rdf:type ontology:Q15416 } GROUP BY ?g } }
The Big O 101 Dalmatians: The Series Pirate Express Soul Eater The 7D
Around 14 people did the dubbing for The Big O, Pirate Express and 101 Dalmatians: The Series
The Big O Pirate Express 101 Dalmatians: The Series
action approx
action find_tuple_counts
relation voice actor
type television program
type common name
value 14
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?f = 14 ) . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?f ) WHERE { ?g property:voice_actor ?v . ?v rdf:type ontology:common_name . ?g rdf:type ontology:television_program } GROUP BY ?g } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q15053663 Q5123996
P50
Q502895
USER
Which people penned City of a Thousand Suns or Misguided Weapons ?
OR((Q5123996,P50,c(Q502895)), (Q15053663,P50,c(Q502895)))
action filter_type
action union
action find
entity Q5123996
relation P50
action find
entity Q15053663
relation P50
type Q502895
{'OR': [['Q5123996', 'P50', {'concept': 'Q502895'}], ['Q15053663', 'P50', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?y WHERE { { ?l property:P50 ?y . VALUES ( ?l ) { ( resource:Q5123996 ) ( resource:Q15053663 ) } } . ?y rdf:type ontology:Q502895 }
Misguided Weapons City of a Thousand Suns
action filter_type
action union
action find
entity City of a Thousand Suns
relation author
action find
entity Misguided Weapons
relation author
type common name
{'OR': [['City of a Thousand Suns', 'author', {'concept': 'common name'}], ['Misguided Weapons', 'author', {'concept': 'common name'}]]}
SELECT DISTINCT ?y WHERE { { ?l property:author ?y . VALUES ( ?l ) { ( resource:City_of_a_Thousand_Suns ) ( resource:Misguided_Weapons ) } } . ?y rdf:type ontology:common_name }
[]
common name
Q15053656 Q438164
SYSTEM
Azriel Lorber, Samuel R. Delany
Q15053656 Q438164
OR((Q5123996,P50,c(Q502895)), (Q15053663,P50,c(Q502895)))
action filter_type
action union
action find
entity Q5123996
relation P50
action find
entity Q15053663
relation P50
type Q502895
[ANSWERS] penned City of a Thousand Suns or Misguided Weapons
{'OR': [['Q5123996', 'P50', {'concept': 'Q502895'}], ['Q15053663', 'P50', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?y WHERE { { ?l property:P50 ?y . VALUES ( ?l ) { ( resource:Q5123996 ) ( resource:Q15053663 ) } } . ?y rdf:type ontology:Q502895 }
Azriel Lorber Samuel R. Delany
Azriel Lorber and Samuel R. Delany penned City of a Thousand Suns or Misguided Weapons
Azriel Lorber Samuel R. Delany
action filter_type
action union
action find
entity City of a Thousand Suns
relation author
action find
entity Misguided Weapons
relation author
type common name
{'OR': [['City of a Thousand Suns', 'author', {'concept': 'common name'}], ['Misguided Weapons', 'author', {'concept': 'common name'}]]}
SELECT DISTINCT ?y WHERE { { ?l property:author ?y . VALUES ( ?l ) { ( resource:City_of_a_Thousand_Suns ) ( resource:Misguided_Weapons ) } } . ?y rdf:type ontology:common_name }
[]