Simple Question (Direct)
Simple Question
Q12816131
P7
Q502895
USER
Which person is the brother of Ignác Strasznof ?
(Q12816131,P7,c(Q502895))
action filter_type
action find
entity Q12816131
relation P7
type Q502895
['Q12816131', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . resource:Q12816131 property:P7 ?z }
Ignác Strasznof
action filter_type
action find
entity Ignác Strasznof
relation brother
type common name
['Ignác Strasznof', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . resource:Ignác_Strasznof property:brother ?z }
[]
common name
Q12352576
SYSTEM
Mihály Szendrey
Q12352576
(Q12816131,P7,c(Q502895))
action filter_type
action find
entity Q12816131
relation P7
type Q502895
[ANSWER] is the brother of Ignác Strasznof
['Q12816131', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . resource:Q12816131 property:P7 ?z }
Mihály Szendrey
Mihály Szendrey is the brother of Ignác Strasznof
Mihály Szendrey
action filter_type
action find
entity Ignác Strasznof
relation brother
type common name
['Ignác Strasznof', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . resource:Ignác_Strasznof property:brother ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12352576
P20
Q56061
USER
Where did the expiration of that person occur ?
(Q12352576,P20,c(Q56061))
action filter_type
action find
entity Q12352576
relation P20
type Q56061
['Q12352576', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q12352576 property:P20 ?p }
Mihály Szendrey
action filter_type
action find
entity Mihály Szendrey
relation place of death
type administrative territorial entity
['Mihály Szendrey', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Mihály_Szendrey property:place_of_death ?p }
[]
administrative territorial entity
Q1781
SYSTEM
Budapest
Q1781
(Q12352576,P20,c(Q56061))
action filter_type
action find
entity Q12352576
relation P20
type Q56061
The expiration of that person occurred in [ANSWER]
['Q12352576', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q12352576 property:P20 ?p }
Budapest
The expiration of that person occurred in Budapest
Budapest
action filter_type
action find
entity Mihály Szendrey
relation place of death
type administrative territorial entity
['Mihály Szendrey', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Mihály_Szendrey property:place_of_death ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12352576
P21
Q290
USER
Which sex does that person belong to ?
(Q1781,P21,c(Q290))
action filter_type
action find
entity Q12352576
relation P21
type Q290
['Q1781', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q12352576 property:P21 ?t . ?t rdf:type ontology:Q290 }
Mihály Szendrey
action filter_type
action find
entity Mihály Szendrey
relation gender
type sex
['Budapest', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Mihály_Szendrey property:gender ?t . ?t rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1781,P21,c(Q290))
action filter_type
action find
entity Q12352576
relation P21
type Q290
That person belongs to [ANSWER]
['Q1781', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q12352576 property:P21 ?t . ?t rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Mihály Szendrey
relation gender
type sex
['Budapest', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Mihály_Szendrey property:gender ?t . ?t rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1781
P740
Q215380 Q2088357
USER
How many bands and musical ensembles originated at Budapest ?
(c(Q215380),P740,Q1781) (c(Q2088357),P740,Q1781)
action count
action union
action filter_type
action find_reverse
entity Q1781
relation P740
type Q215380
action filter_type
action find_reverse
entity Q1781
relation P740
type Q2088357
[{'concept': 'Q215380'}, 'P740', 'Q1781'] [{'concept': 'Q2088357'}, 'P740', 'Q1781']
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { ?l rdf:type ontology:Q215380 . ?l property:P740 resource:Q1781 } UNION { ?l property:P740 resource:Q1781 . ?l rdf:type ontology:Q2088357 } }
Budapest
action count
action union
action filter_type
action find_reverse
entity Budapest
relation location of formation
type band
action filter_type
action find_reverse
entity Budapest
relation location of formation
type musical ensemble
[{'concept': 'band'}, 'location of formation', 'Budapest'] [{'concept': 'musical ensemble'}, 'location of formation', 'Budapest']
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { ?l rdf:type ontology:band . ?l property:location_of_formation resource:Budapest } UNION { ?l property:location_of_formation resource:Budapest . ?l rdf:type ontology:musical_ensemble } }
[]
band musical ensemble
SYSTEM
1 bands and 17 musical ensembles
Q18385447 Q7493638 Q7977337 Q7644158 Q5655101 Q1227347 Q1319562 Q1098562 Q5324760 Q15053519 Q1319176 Q7810229 Q19512804 Q16838330 Q16962886 Q7751359 Q456956 Q7757872
(c(Q215380),P740,Q1781) (c(Q2088357),P740,Q1781)
action count
action union
action filter_type
action find_reverse
entity Q1781
relation P740
type Q215380
action filter_type
action find_reverse
entity Q1781
relation P740
type Q2088357
[ANSWER]
[{'concept': 'Q215380'}, 'P740', 'Q1781'] [{'concept': 'Q2088357'}, 'P740', 'Q1781']
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { ?l rdf:type ontology:Q215380 . ?l property:P740 resource:Q1781 } UNION { ?l property:P740 resource:Q1781 . ?l rdf:type ontology:Q2088357 } }
Omega Diatribe Shell Beach We Are Rockstars Supersonic Hard P. Mobil The Moog Ivan & The Parazol EZ Basic The Idoru The Carbonfools Tits & Clits Bin-Jip Galloping Wonder Stag The Trousers The Mighty Fishers Amber Smith The Poster Boy
1 bands and 17 musical ensembles
action count
action union
action filter_type
action find_reverse
entity Budapest
relation location of formation
type band
action filter_type
action find_reverse
entity Budapest
relation location of formation
type musical ensemble
[{'concept': 'band'}, 'location of formation', 'Budapest'] [{'concept': 'musical ensemble'}, 'location of formation', 'Budapest']
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { ?l rdf:type ontology:band . ?l property:location_of_formation resource:Budapest } UNION { ?l property:location_of_formation resource:Budapest . ?l rdf:type ontology:musical_ensemble } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q12352576
P21 P7
Q502895
USER
Which people had Mihály Szendrey as brother and have male as the sex ?
AND((c(Q502895),P7,Q12352576), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q12352576
relation P7
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q12352576'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?v WHERE { ?v property:P7 resource:Q12352576 . ?v property:P21 resource:Q6581097 . ?v rdf:type ontology:Q502895 }
male Mihály Szendrey
action filter_type
action intersection
action find_reverse
entity Mihály Szendrey
relation brother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Mihály Szendrey'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?v WHERE { ?v property:brother resource:Mihály_Szendrey . ?v property:gender resource:male . ?v rdf:type ontology:common_name }
[]
common name
Q12816131
SYSTEM
Ignác Strasznof
Q12816131
AND((c(Q502895),P7,Q12352576), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q12352576
relation P7
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] had Mihály Szendrey as brother and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q12352576'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?v WHERE { ?v property:P7 resource:Q12352576 . ?v property:P21 resource:Q6581097 . ?v rdf:type ontology:Q502895 }
Ignác Strasznof
Ignác Strasznof had Mihály Szendrey as brother and have male as the sex
Ignác Strasznof
action filter_type
action intersection
action find_reverse
entity Mihály Szendrey
relation brother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Mihály Szendrey'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?v WHERE { ?v property:brother resource:Mihály_Szendrey . ?v property:gender resource:male . ?v rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1235519
P725
Q502895 Q11424
USER
How many films did lesser number of people dub for than Panda and the Magic Serpent ?
(c(Q11424),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q11424
type Q502895
action count
action filter_type
action find
entity Q1235519
relation P725
type Q502895
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?n ) WHERE { ?t property:P725 ?z . ?t rdf:type ontology:Q11424 . ?z rdf:type ontology:Q502895 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Q1235519 property:P725 ?l . ?l rdf:type ontology:Q502895 } } . FILTER ( ?n < ?r ) }
Panda and the Magic Serpent
action count
action less
action find_tuple_counts
relation voice actor
type film
type common name
action count
action filter_type
action find
entity Panda and the Magic Serpent
relation voice actor
type common name
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?n ) WHERE { ?t property:voice_actor ?z . ?t rdf:type ontology:film . ?z rdf:type ontology:common_name } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Panda_and_the_Magic_Serpent property:voice_actor ?l . ?l rdf:type ontology:common_name } } . FILTER ( ?n < ?r ) }
[]
common name film
SYSTEM
19
Q1138751 Q713543 Q909740 Q842306 Q2918397 Q29355 Q2898231 Q1418615 Q785363 Q1656435 Q1032225 Q264873 Q943192 Q1361113 Q19703751 Q1513926 Q2299779 Q543486 Q1195096
(c(Q11424),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q11424
type Q502895
action count
action filter_type
action find
entity Q1235519
relation P725
type Q502895
[ANSWER]
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?n ) WHERE { ?t property:P725 ?z . ?t rdf:type ontology:Q11424 . ?z rdf:type ontology:Q502895 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Q1235519 property:P725 ?l . ?l rdf:type ontology:Q502895 } } . FILTER ( ?n < ?r ) }
The Plague Dogs Cat City Krabat – The Sorcerer's Apprentice Saludos Amigos The Bugs Bunny/Road Runner Movie Space Dogs The Real Shlemiel Fritz the Cat The Time Masters Ico, the Brave Horse Foam Bath Willy the Sparrow Fantasia Pooh's Heffalump Movie Millionaire Dogs Magic Boy Animal Farms Daisy Town Havoc in Heaven
19
action count
action less
action find_tuple_counts
relation voice actor
type film
type common name
action count
action filter_type
action find
entity Panda and the Magic Serpent
relation voice actor
type common name
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?n ) WHERE { ?t property:voice_actor ?z . ?t rdf:type ontology:film . ?z rdf:type ontology:common_name } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Panda_and_the_Magic_Serpent property:voice_actor ?l . ?l rdf:type ontology:common_name } } . FILTER ( ?n < ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q4499813
P725
Q502895 Q11424
USER
And how about Home?
(c(Q11424),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q11424
type Q502895
action count
action filter_type
action find
entity Q4499813
relation P725
type Q502895
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?a ) WHERE { ?e property:P725 ?k . ?k rdf:type ontology:Q502895 . ?e rdf:type ontology:Q11424 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Q4499813 property:P725 ?p . ?p rdf:type ontology:Q502895 } } . FILTER ( ?a < ?t ) }
Home
action count
action less
action find_tuple_counts
relation voice actor
type film
type common name
action count
action filter_type
action find
entity Home
relation voice actor
type common name
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?a ) WHERE { ?e property:voice_actor ?k . ?k rdf:type ontology:common_name . ?e rdf:type ontology:film } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Home property:voice_actor ?p . ?p rdf:type ontology:common_name } } . FILTER ( ?a < ?t ) }
[]
common name film
SYSTEM
42
Q1235519 Q3038714 Q1138751 Q6296387 Q713543 Q449917 Q909740 Q842306 Q1491010 Q156401 Q811980 Q254671 Q2918397 Q44817 Q29355 Q9019373 Q223359 Q2898231 Q1418615 Q785363 Q869741 Q371490 Q1656435 Q3836716 Q1032225 Q264873 Q4189838 Q943192 Q1361113 Q736731 Q318428 Q19703751 Q1513926 Q336012 Q2299779 Q1494230 Q2068444 Q1634740 Q3190021 Q543486 Q1195096 Q240852
(c(Q11424),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q11424
type Q502895
action count
action filter_type
action find
entity Q4499813
relation P725
type Q502895
[ANSWER]
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?a ) WHERE { ?e property:P725 ?k . ?k rdf:type ontology:Q502895 . ?e rdf:type ontology:Q11424 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Q4499813 property:P725 ?p . ?p rdf:type ontology:Q502895 } } . FILTER ( ?a < ?t ) }
Panda and the Magic Serpent Lucky Luke: The Daltons on the Run The Plague Dogs Rio 2 Cat City The Chipmunk Adventure Krabat – The Sorcerer's Apprentice Saludos Amigos Tintin and the Lake of Sharks Chicken Run The Adventures of Lolo the Penguin Coonskin The Bugs Bunny/Road Runner Movie The Little Fox Space Dogs The Legend of the North Wind Rio The Real Shlemiel Fritz the Cat The Time Masters Melody Time Son of the White Mare Ico, the Brave Horse The Looney Looney Looney Bugs Bunny Movie Foam Bath Willy the Sparrow Starchaser: The Legend of Orin Fantasia Pooh's Heffalump Movie The Three Caballeros Wallace & Gromit: The Curse of the Were-Rabbit Millionaire Dogs Magic Boy The Girl Who Leapt Through Time Animal Farms Garfield Gets Real Felix the Cat: The Movie Jungledyret Hugo Jungledyret Hugo - den store filmhelt Daisy Town Havoc in Heaven FernGully: The Last Rainforest
42
action count
action less
action find_tuple_counts
relation voice actor
type film
type common name
action count
action filter_type
action find
entity Home
relation voice actor
type common name
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?a ) WHERE { ?e property:voice_actor ?k . ?k rdf:type ontology:common_name . ?e rdf:type ontology:film } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Home property:voice_actor ?p . ?p rdf:type ontology:common_name } } . FILTER ( ?a < ?t ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q12390943 Q1235519
P27 P495
Q15617994
USER
Which administrative territories did Panda and the Magic Serpent originate or are the countries of citizenship of José-Maria Monterroso Devesa ?
OR((Q1235519,P495,c(Q15617994)), (Q12390943,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1235519
relation P495
action find
entity Q12390943
relation P27
type Q15617994
{'OR': [['Q1235519', 'P495', {'concept': 'Q15617994'}], ['Q12390943', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q1235519 property:P495 ?e } UNION { resource:Q12390943 property:P27 ?e } } . ?e rdf:type ontology:Q15617994 }
José-Maria Monterroso Devesa Panda and the Magic Serpent
action filter_type
action union
action find
entity Panda and the Magic Serpent
relation country of origin
action find
entity José-Maria Monterroso Devesa
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Panda and the Magic Serpent', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['José-Maria Monterroso Devesa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Panda_and_the_Magic_Serpent property:country_of_origin ?e } UNION { resource:José-Maria_Monterroso_Devesa property:country_of_citizenship ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q17
SYSTEM
Spain, Japan
Q29 Q17
OR((Q1235519,P495,c(Q15617994)), (Q12390943,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1235519
relation P495
action find
entity Q12390943
relation P27
type Q15617994
Panda and the Magic Serpent originated in [ANSWERS] or are the countries of citizenship of José-Maria Monterroso Devesa
{'OR': [['Q1235519', 'P495', {'concept': 'Q15617994'}], ['Q12390943', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q1235519 property:P495 ?e } UNION { resource:Q12390943 property:P27 ?e } } . ?e rdf:type ontology:Q15617994 }
Spain Japan
Panda and the Magic Serpent originated in Spain and Japan or are the countries of citizenship of José-Maria Monterroso Devesa
Spain Japan
action filter_type
action union
action find
entity Panda and the Magic Serpent
relation country of origin
action find
entity José-Maria Monterroso Devesa
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Panda and the Magic Serpent', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['José-Maria Monterroso Devesa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Panda_and_the_Magic_Serpent property:country_of_origin ?e } UNION { resource:José-Maria_Monterroso_Devesa property:country_of_citizenship ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q29 Q17
P1313
Q12737077
USER
Which occupations serve as the political office that are fulfilled by the head of the government of Spain and Japan ?
(Q29,P1313,c(Q12737077)) (Q17,P1313,c(Q12737077))
action union
action filter_type
action find
entity Q29
relation P1313
type Q12737077
action filter_type
action find
entity Q17
relation P1313
type Q12737077
['Q29', 'P1313', {'concept': 'Q12737077'}] ['Q17', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { VALUES ( ?c ) { ( resource:Q29 ) ( resource:Q17 ) } . ?c property:P1313 ?z }
Spain Japan
action union
action filter_type
action find
entity Spain
relation office held by head of government
type occupation
action filter_type
action find
entity Japan
relation office held by head of government
type occupation
['Spain', 'office held by head of government', {'concept': 'occupation'}] ['Japan', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { VALUES ( ?c ) { ( resource:Spain ) ( resource:Japan ) } . ?c property:office_held_by_head_of_government ?z }
[]
occupation
Q844587 Q274948
SYSTEM
Prime Minister of Spain, Prime Minister of Japan
Q844587 Q274948
(Q29,P1313,c(Q12737077)) (Q17,P1313,c(Q12737077))
action union
action filter_type
action find
entity Q29
relation P1313
type Q12737077
action filter_type
action find
entity Q17
relation P1313
type Q12737077
[ANSWERS] serve as the political office that are fulfilled by the head of the government of Spain and Japan
['Q29', 'P1313', {'concept': 'Q12737077'}] ['Q17', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { VALUES ( ?c ) { ( resource:Q29 ) ( resource:Q17 ) } . ?c property:P1313 ?z }
Prime Minister of Spain Prime Minister of Japan
Prime Minister of Spain and Prime Minister of Japan serve as the political office that are fulfilled by the head of the government of Spain and Japan
Prime Minister of Spain Prime Minister of Japan
action union
action filter_type
action find
entity Spain
relation office held by head of government
type occupation
action filter_type
action find
entity Japan
relation office held by head of government
type occupation
['Spain', 'office held by head of government', {'concept': 'occupation'}] ['Japan', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { VALUES ( ?c ) { ( resource:Spain ) ( resource:Japan ) } . ?c property:office_held_by_head_of_government ?z }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q844587 Q274948
P39
Q502895
USER
Which people were appointed for the position of those occupations ?
(c(Q502895),P39,Q844587) (c(Q502895),P39,Q274948)
action filter_type
action find_reverse
entity prev_answer
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q844587'] [{'concept': 'Q502895'}, 'P39', 'Q274948']
SELECT DISTINCT ?v WHERE { ?v property:P39 ?o . ?v rdf:type ontology:Q502895 . VALUES ( ?o ) { ( resource:Q844587 ) ( resource:Q274948 ) } }
Prime Minister of Spain Prime Minister of Japan
action filter_type
action find_reverse
entity prev_answer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Prime Minister of Spain'] [{'concept': 'common name'}, 'position held', 'Prime Minister of Japan']
SELECT DISTINCT ?v WHERE { ?v property:position_held ?o . ?v rdf:type ontology:common_name . VALUES ( ?o ) { ( resource:Prime_Minister_of_Spain ) ( resource:Prime_Minister_of_Japan ) } }
[]
common name
Q174971 Q132596 Q214367
SYSTEM
Ito Hirobumi, Taro Aso, Adolfo Suárez
Q10819 Q192894 Q273129 Q365309 Q454265 Q312040 Q982106 Q55637 Q27357 Q214367 Q41395 Q156799 Q313117 Q29179 Q203708 Q451370 Q451370 Q451370 Q131077 Q145416 Q299142 Q315594 Q174971 Q315584 Q101137 Q315572 Q57647 Q4479990 Q132345 Q132345 Q714951 Q317675 Q297644 Q715231 Q130852 Q179871 Q313339 Q335194 Q335191 Q335198 Q335188 Q379996 Q335177 Q335177 Q351652 Q351661 Q351665 Q354687 Q233499 Q309374 Q315591 Q315549 Q744989 Q301804 Q301804 Q333589 Q47846 Q250828 Q315568 Q315565 Q132596 Q310126 Q315555 Q315551 Q315720 Q315725 Q315574 Q315579 Q315561
(c(Q502895),P39,Q844587) (c(Q502895),P39,Q274948)
action filter_type
action find_reverse
entity prev_answer
relation P39
type Q502895
[ANSWERS] were appointed for the position of those occupations
[{'concept': 'Q502895'}, 'P39', 'Q844587'] [{'concept': 'Q502895'}, 'P39', 'Q274948']
SELECT DISTINCT ?v WHERE { ?v property:P39 ?o . ?v rdf:type ontology:Q502895 . VALUES ( ?o ) { ( resource:Q844587 ) ( resource:Q274948 ) } }
Mariano Rajoy Miguel Primo de Rivera, 2nd Marquis of Estella Leopoldo Calvo-Sotelo José Canalejas Leopoldo O'Donnell, 1st Duke of Tetuan Francisco Largo Caballero Joaquín Jovellar y Soler José María Aznar Francisco de Paula Martínez de la Rosa y Berdejo Adolfo Suárez José Luis Rodríguez Zapatero Felipe González Luis Carrero Blanco Francisco Franco Manuel Azaña Alejandro Lerroux Alejandro Lerroux Alejandro Lerroux Yukio Hatoyama Tanaka Giichi Hayato Ikeda Fumimaro Konoe Ito Hirobumi Takeo Fukuda Yasuo Fukuda Nobusuke Kishi Yoshihiko Noda Kenzō Yoshida Shinzō Abe Shinzō Abe Keisuke Okada Takeo Miki Kakuei Tanaka Mitsumasa Yonai Junichiro Koizumi Eisaku Satō Keizō Obuchi Tetsu Katayama Kijūrō Shidehara Kantarō Suzuki Saitō Makoto Hiranuma Kiichirō Wakatsuki Reijirō Wakatsuki Reijirō Kōki Hirota Osachi Hamaguchi Senjūrō Hayashi Inukai Tsuyoshi Yoshiro Mori Ryūtarō Hashimoto Sōsuke Uno Kuniaki Koiso Masayoshi Ito Shigeru Yoshida Shigeru Yoshida Ichirō Hatoyama Naoto Kan Yasuhiro Nakasone Masayoshi Ōhira Kiichi Miyazawa Taro Aso Tomiichi Murayama Morihiro Hosokawa Zenkō Suzuki Tsutomu Hata Hitoshi Ashida Nobuyuki Abe Toshiki Kaifu Noboru Takeshita
Ito Hirobumi, Taro Aso and Adolfo Suárez were appointed for the position of those occupations
Ito Hirobumi Taro Aso Adolfo Suárez
action filter_type
action find_reverse
entity prev_answer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Prime Minister of Spain'] [{'concept': 'common name'}, 'position held', 'Prime Minister of Japan']
SELECT DISTINCT ?v WHERE { ?v property:position_held ?o . ?v rdf:type ontology:common_name . VALUES ( ?o ) { ( resource:Prime_Minister_of_Spain ) ( resource:Prime_Minister_of_Japan ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q174971
P26
Q502895
USER
Which person is the life partner of that one ?
(c(Q502895),P26,Q174971)
action filter_type
action find
entity Q174971
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q174971']
SELECT DISTINCT ?u WHERE { resource:Q174971 property:P26 ?u . ?u rdf:type ontology:Q502895 }
Ito Hirobumi
action filter_type
action find
entity Ito Hirobumi
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Ito Hirobumi']
SELECT DISTINCT ?u WHERE { resource:Ito_Hirobumi property:spouse ?u . ?u rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q132596
SYSTEM
Did you mean Taro Aso ?
Q174971 Q132596 Q214367
(c(Q502895),P26,Q174971) (c(Q502895),P26,Q132596) (c(Q502895),P26,Q214367)
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q174971'] [{'concept': 'Q502895'}, 'P26', 'Q132596'] [{'concept': 'Q502895'}, 'P26', 'Q214367']
SELECT DISTINCT ?u WHERE { resource:Q174971 property:P26 ?u . ?u rdf:type ontology:Q502895 }
Ito Hirobumi Taro Aso Adolfo Suárez
Did you mean Taro Aso ?
Taro Aso
[{'concept': 'common name'}, 'spouse', 'Ito Hirobumi'] [{'concept': 'common name'}, 'spouse', 'Taro Aso'] [{'concept': 'common name'}, 'spouse', 'Adolfo Suárez']
SELECT DISTINCT ?u WHERE { resource:Ito_Hirobumi property:spouse ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Ito Hirobumi. Could you tell me the answer for that?
(c(Q502895),P26,Q174971)
Q174971
[{'concept': 'Q502895'}, 'P26', 'Q174971']
[{'concept': 'common name'}, 'spouse', 'Ito Hirobumi']
[]
Q4205319
SYSTEM
Itō Umeko
Q4205319
(c(Q502895),P26,Q174971)
action filter_type
action find
entity Q174971
relation P26
type Q502895
[ANSWER] is the life partner of that one
[{'concept': 'Q502895'}, 'P26', 'Q174971']
SELECT DISTINCT ?u WHERE { resource:Q174971 property:P26 ?u . ?u rdf:type ontology:Q502895 }
Itō Umeko
Itō Umeko is the life partner of that one
Itō Umeko
action filter_type
action find
entity Ito Hirobumi
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Ito Hirobumi']
SELECT DISTINCT ?u WHERE { resource:Ito_Hirobumi property:spouse ?u . ?u rdf:type ontology:common_name }
[]