Simple Question (Direct)
Simple Question
Q2649324
P364
Q34770
USER
Which language was used originally for the creation of Lost Horizon ?
(Q2649324,P364,c(Q34770))
action filter_type
action find
entity Q2649324
relation P364
type Q34770
['Q2649324', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { resource:Q2649324 property:P364 ?h . ?h rdf:type ontology:Q34770 }
Lost Horizon
action filter_type
action find
entity Lost Horizon
relation original language of work
type language
['Lost Horizon', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { resource:Lost_Horizon property:original_language_of_work ?h . ?h rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q2649324,P364,c(Q34770))
action filter_type
action find
entity Q2649324
relation P364
type Q34770
In [ANSWER] was used originally for the creation of Lost Horizon
['Q2649324', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { resource:Q2649324 property:P364 ?h . ?h rdf:type ontology:Q34770 }
English
In English was used originally for the creation of Lost Horizon
English
action filter_type
action find
entity Lost Horizon
relation original language of work
type language
['Lost Horizon', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { resource:Lost_Horizon property:original_language_of_work ?h . ?h rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2649324
P57
Q502895
USER
Who was that work of art directed by ?
(Q1860,P57,c(Q502895))
action filter_type
action find
entity Q2649324
relation P57
type Q502895
['Q1860', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q2649324 property:P57 ?m . ?m rdf:type ontology:Q502895 }
Lost Horizon
action filter_type
action find
entity Lost Horizon
relation director
type common name
['English', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Lost_Horizon property:director ?m . ?m rdf:type ontology:common_name }
[]
common name
Q951493
SYSTEM
Charles Jarrott
Q951493
(Q1860,P57,c(Q502895))
action filter_type
action find
entity Q2649324
relation P57
type Q502895
By that work of art directed was by [ANSWER]
['Q1860', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q2649324 property:P57 ?m . ?m rdf:type ontology:Q502895 }
Charles Jarrott
By that work of art directed was by Charles Jarrott
Charles Jarrott
action filter_type
action find
entity Lost Horizon
relation director
type common name
['English', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Lost_Horizon property:director ?m . ?m rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q951493 Q145
P27
Q15617994
USER
Is Charles Jarrott a civilian of United Kingdom ?
(Q951493,P27,Q145)
action is_in
entity Q145
action find
entity Q951493
relation P27
['Q951493', 'P27', 'Q145']
ASK WHERE { resource:Q951493 property:P27 resource:Q145 }
Charles Jarrott United Kingdom
action is_in
entity United Kingdom
action find
entity Charles Jarrott
relation country of citizenship
['Charles Jarrott', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:Charles_Jarrott property:country_of_citizenship resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q951493,P27,Q145)
action is_in
entity Q145
action find
entity Q951493
relation P27
[ANSWER]
['Q951493', 'P27', 'Q145']
ASK WHERE { resource:Q951493 property:P27 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity Charles Jarrott
relation country of citizenship
['Charles Jarrott', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:Charles_Jarrott property:country_of_citizenship resource:United_Kingdom }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2649324 Q105987 Q1728136
P161
Q502895
USER
Does Lost Horizon star Charles Boyer and Norbert Brackmann as actor ?
(Q2649324,P161,Q105987) (Q2649324,P161,Q1728136)
action is_in
entity Q2649324
action intersection
action find_reverse
entity Q105987
relation P161
action find_reverse
entity Q1728136
relation P161
['Q2649324', 'P161', 'Q105987'] ['Q2649324', 'P161', 'Q1728136']
ASK WHERE { resource:Q2649324 property:P161 resource:Q105987 . resource:Q2649324 property:P161 resource:Q1728136 }
Lost Horizon Charles Boyer Norbert Brackmann
action is_in
entity Lost Horizon
action intersection
action find_reverse
entity Charles Boyer
relation cast member
action find_reverse
entity Norbert Brackmann
relation cast member
['Lost Horizon', 'cast member', 'Charles Boyer'] ['Lost Horizon', 'cast member', 'Norbert Brackmann']
ASK WHERE { resource:Lost_Horizon property:cast_member resource:Charles_Boyer . resource:Lost_Horizon property:cast_member resource:Norbert_Brackmann }
[]
common name
SYSTEM
YES and NO respectively
(Q2649324,P161,Q105987) (Q2649324,P161,Q1728136)
action is_in
entity Q2649324
action intersection
action find_reverse
entity Q105987
relation P161
action find_reverse
entity Q1728136
relation P161
[ANSWER]
['Q2649324', 'P161', 'Q105987'] ['Q2649324', 'P161', 'Q1728136']
ASK WHERE { resource:Q2649324 property:P161 resource:Q105987 . resource:Q2649324 property:P161 resource:Q1728136 }
YES and NO respectively
action is_in
entity Lost Horizon
action intersection
action find_reverse
entity Charles Boyer
relation cast member
action find_reverse
entity Norbert Brackmann
relation cast member
['Lost Horizon', 'cast member', 'Charles Boyer'] ['Lost Horizon', 'cast member', 'Norbert Brackmann']
ASK WHERE { resource:Lost_Horizon property:cast_member resource:Charles_Boyer . resource:Lost_Horizon property:cast_member resource:Norbert_Brackmann }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q951493
P57
Q838948 Q15416
USER
How many works of art and television programs are Charles Jarrott a director of ?
(c(Q838948),P57,Q951493) (c(Q15416),P57,Q951493)
action count
action union
action filter_type
action find_reverse
entity Q951493
relation P57
type Q838948
action filter_type
action find_reverse
entity Q951493
relation P57
type Q15416
[{'concept': 'Q838948'}, 'P57', 'Q951493'] [{'concept': 'Q15416'}, 'P57', 'Q951493']
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { ?e property:P57 resource:Q951493 . ?e rdf:type ontology:Q838948 } UNION { ?e property:P57 resource:Q951493 . ?e rdf:type ontology:Q15416 } }
Charles Jarrott
action count
action union
action filter_type
action find_reverse
entity Charles Jarrott
relation director
type work of art
action filter_type
action find_reverse
entity Charles Jarrott
relation director
type television program
[{'concept': 'work of art'}, 'director', 'Charles Jarrott'] [{'concept': 'television program'}, 'director', 'Charles Jarrott']
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { ?e property:director resource:Charles_Jarrott . ?e rdf:type ontology:work_of_art } UNION { ?e property:director resource:Charles_Jarrott . ?e rdf:type ontology:television_program } }
[]
work of art television program
SYSTEM
13 works of art and 5 television programs
Q1856597 Q7033697 Q5237696 Q472215 Q7763033 Q1124617 Q910226 Q7730764 Q4080617 Q7775479 Q2015601 Q4994471 Q1212938 Q5397051 Q7855746 Q2365712 Q1763191 Q2649324
(c(Q838948),P57,Q951493) (c(Q15416),P57,Q951493)
action count
action union
action filter_type
action find_reverse
entity Q951493
relation P57
type Q838948
action filter_type
action find_reverse
entity Q951493
relation P57
type Q15416
[ANSWER]
[{'concept': 'Q838948'}, 'P57', 'Q951493'] [{'concept': 'Q15416'}, 'P57', 'Q951493']
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { ?e property:P57 resource:Q951493 . ?e rdf:type ontology:Q838948 } UNION { ?e property:P57 resource:Q951493 . ?e rdf:type ontology:Q15416 } }
Mary, Queen of Scots Night of the Fox The Christmas List The Last Flight of Noah's Ark The Secret Life of Algernon Condorman Anne of the Thousand Days The Dove Poor Little Rich Girl: The Barbara Hutton Story The Woman He Loved The Boy in Blue Changes The Strange Case of Dr. Jekyll and Mr. Hyde Escape from the Dark Turn of Faith The Other Side of Midnight The Amateur Lost Horizon
13 works of art and 5 television programs
action count
action union
action filter_type
action find_reverse
entity Charles Jarrott
relation director
type work of art
action filter_type
action find_reverse
entity Charles Jarrott
relation director
type television program
[{'concept': 'work of art'}, 'director', 'Charles Jarrott'] [{'concept': 'television program'}, 'director', 'Charles Jarrott']
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { ?e property:director resource:Charles_Jarrott . ?e rdf:type ontology:work_of_art } UNION { ?e property:director resource:Charles_Jarrott . ?e rdf:type ontology:television_program } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q951493
P20
Q56061
USER
How many administrative territories did the expiration of Charles Jarrott occur ?
(Q951493,P20,c(Q56061))
action count
action filter_type
action find
entity Q951493
relation P20
type Q56061
['Q951493', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { resource:Q951493 property:P20 ?e . ?e rdf:type ontology:Q56061 }
Charles Jarrott
action count
action filter_type
action find
entity Charles Jarrott
relation place of death
type administrative territorial entity
['Charles Jarrott', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { resource:Charles_Jarrott property:place_of_death ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q65
(Q951493,P20,c(Q56061))
action count
action filter_type
action find
entity Q951493
relation P20
type Q56061
[ANSWER]
['Q951493', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { resource:Q951493 property:P20 ?e . ?e rdf:type ontology:Q56061 }
Los Angeles
1
action count
action filter_type
action find
entity Charles Jarrott
relation place of death
type administrative territorial entity
['Charles Jarrott', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { resource:Charles_Jarrott property:place_of_death ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q3271559
P20
Q56061
USER
And how about Léonce-Émile Durand-Savoyat?
(Q3271559,P20,c(Q56061))
action count
action filter_type
action find
entity Q3271559
relation P20
type Q56061
['Q3271559', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { resource:Q3271559 property:P20 ?r . ?r rdf:type ontology:Q56061 }
Léonce-Émile Durand-Savoyat
action count
action filter_type
action find
entity Léonce-Émile Durand-Savoyat
relation place of death
type administrative territorial entity
['Léonce-Émile Durand-Savoyat', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { resource:Léonce-Émile_Durand-Savoyat property:place_of_death ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q1289
(Q3271559,P20,c(Q56061))
action count
action filter_type
action find
entity Q3271559
relation P20
type Q56061
[ANSWER]
['Q3271559', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { resource:Q3271559 property:P20 ?r . ?r rdf:type ontology:Q56061 }
Grenoble
1
action count
action filter_type
action find
entity Léonce-Émile Durand-Savoyat
relation place of death
type administrative territorial entity
['Léonce-Émile Durand-Savoyat', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { resource:Léonce-Émile_Durand-Savoyat property:place_of_death ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q7971437
Q56061
USER
And how about Washboard Willie?
(Q7971437,P20,c(Q56061))
action count
action filter_type
action find
entity Q7971437
relation P20
type Q56061
['Q7971437', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Q7971437 property:P20 ?d . ?d rdf:type ontology:Q56061 }
Washboard Willie
action count
action filter_type
action find
entity Washboard Willie
relation place of death
type administrative territorial entity
['Washboard Willie', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Washboard_Willie property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
(Q7971437,P20,c(Q56061))
action count
action filter_type
action find
entity Q7971437
relation P20
type Q56061
[ANSWER]
['Q7971437', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Q7971437 property:P20 ?d . ?d rdf:type ontology:Q56061 }
1
action count
action filter_type
action find
entity Washboard Willie
relation place of death
type administrative territorial entity
['Washboard Willie', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Washboard_Willie property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q15961987
USER
Which television genres had exactly 1 person as the dubbing artist ?
(c(Q15961987),P725,c(Q502895))
action equal
action find_tuple_counts
relation P725
type Q15961987
type Q502895
value 1
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?e ) WHERE { ?a property:P725 ?d . ?a rdf:type ontology:Q15961987 . ?d rdf:type ontology:Q502895 } GROUP BY ?a } . FILTER ( ?e = 1 ) }
action equal
action find_tuple_counts
relation voice actor
type television genre
type common name
value 1
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?e ) WHERE { ?a property:voice_actor ?d . ?a rdf:type ontology:television_genre . ?d rdf:type ontology:common_name } GROUP BY ?a } . FILTER ( ?e = 1 ) }
[]
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 equal
action find_tuple_counts
relation P725
type Q15961987
type Q502895
value 1
[ANSWERS] had exactly 1 person as the dubbing artist
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?e ) WHERE { ?a property:P725 ?d . ?a rdf:type ontology:Q15961987 . ?d rdf:type ontology:Q502895 } GROUP BY ?a } . FILTER ( ?e = 1 ) }
Avatar: The Last Airbender Pururun! Shizuku-chan The Garfield Show
Avatar: The Last Airbender, Pururun! Shizuku-chan and The Garfield Show had exactly 1 person as the dubbing artist
Avatar: The Last Airbender Pururun! Shizuku-chan The Garfield Show
action equal
action find_tuple_counts
relation voice actor
type television genre
type common name
value 1
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?e ) WHERE { ?a property:voice_actor ?d . ?a rdf:type ontology:television_genre . ?d rdf:type ontology:common_name } GROUP BY ?a } . FILTER ( ?e = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q66627 Q951493
P20
Q56061
USER
Which administrative territories are the places of death of Charles Jarrott or George Cassander ?
OR((Q951493,P20,c(Q56061)), (Q66627,P20,c(Q56061)))
action filter_type
action union
action find
entity Q951493
relation P20
action find
entity Q66627
relation P20
type Q56061
{'OR': [['Q951493', 'P20', {'concept': 'Q56061'}], ['Q66627', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?j WHERE { { ?k property:P20 ?j . VALUES ( ?k ) { ( resource:Q951493 ) ( resource:Q66627 ) } } . ?j rdf:type ontology:Q56061 }
George Cassander Charles Jarrott
action filter_type
action union
action find
entity Charles Jarrott
relation place of death
action find
entity George Cassander
relation place of death
type administrative territorial entity
{'OR': [['Charles Jarrott', 'place of death', {'concept': 'administrative territorial entity'}], ['George Cassander', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { ?k property:place_of_death ?j . VALUES ( ?k ) { ( resource:Charles_Jarrott ) ( resource:George_Cassander ) } } . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q65 Q365
SYSTEM
Los Angeles, Cologne
Q65 Q365
OR((Q951493,P20,c(Q56061)), (Q66627,P20,c(Q56061)))
action filter_type
action union
action find
entity Q951493
relation P20
action find
entity Q66627
relation P20
type Q56061
[ANSWERS] are the places of death of Charles Jarrott or George Cassander
{'OR': [['Q951493', 'P20', {'concept': 'Q56061'}], ['Q66627', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?j WHERE { { ?k property:P20 ?j . VALUES ( ?k ) { ( resource:Q951493 ) ( resource:Q66627 ) } } . ?j rdf:type ontology:Q56061 }
Los Angeles Cologne
Los Angeles and Cologne are the places of death of Charles Jarrott or George Cassander
Los Angeles Cologne
action filter_type
action union
action find
entity Charles Jarrott
relation place of death
action find
entity George Cassander
relation place of death
type administrative territorial entity
{'OR': [['Charles Jarrott', 'place of death', {'concept': 'administrative territorial entity'}], ['George Cassander', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { ?k property:place_of_death ?j . VALUES ( ?k ) { ( resource:Charles_Jarrott ) ( resource:George_Cassander ) } } . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q65 Q365
P190
Q515
USER
Which cities are twin towns of Los Angeles and Cologne ?
(Q65,P190,c(Q515)) (Q365,P190,c(Q515))
action union
action filter_type
action find
entity Q65
relation P190
type Q515
action filter_type
action find
entity Q365
relation P190
type Q515
['Q65', 'P190', {'concept': 'Q515'}] ['Q365', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { VALUES ( ?s ) { ( resource:Q365 ) ( resource:Q65 ) } . ?s property:P190 ?p }
Los Angeles Cologne
action union
action filter_type
action find
entity Los Angeles
relation sister city
type city
action filter_type
action find
entity Cologne
relation sister city
type city
['Los Angeles', 'sister city', {'concept': 'city'}] ['Cologne', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { VALUES ( ?s ) { ( resource:Cologne ) ( resource:Los_Angeles ) } . ?s property:sister_city ?p }
[]
city
Q1953 Q3616 Q3572
SYSTEM
Yerevan, Tehran, Tunis
Q16520 Q1508 Q3616 Q1953 Q3572 Q404429
(Q65,P190,c(Q515)) (Q365,P190,c(Q515))
action union
action filter_type
action find
entity Q65
relation P190
type Q515
action filter_type
action find
entity Q365
relation P190
type Q515
[ANSWERS] are twin towns of Los Angeles and Cologne
['Q65', 'P190', {'concept': 'Q515'}] ['Q365', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { VALUES ( ?s ) { ( resource:Q365 ) ( resource:Q65 ) } . ?s property:P190 ?p }
Busan Makati Tehran Yerevan Tunis Jiaozuo
Yerevan, Tehran and Tunis are twin towns of Los Angeles and Cologne
Yerevan Tehran Tunis
action union
action filter_type
action find
entity Los Angeles
relation sister city
type city
action filter_type
action find
entity Cologne
relation sister city
type city
['Los Angeles', 'sister city', {'concept': 'city'}] ['Cologne', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { VALUES ( ?s ) { ( resource:Cologne ) ( resource:Los_Angeles ) } . ?s property:sister_city ?p }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1953 Q3616 Q3572
P1376
Q15617994
USER
Which administrative territories have Yerevan, Tehran and Tunis have their first city ?
(Q1953,P1376,c(Q15617994)) (Q3616,P1376,c(Q15617994)) (Q3572,P1376,c(Q15617994))
action union
action filter_type
action find
entity Q1953
relation P1376
type Q15617994
action filter_type
action find
entity Q3616
relation P1376
type Q15617994
action filter_type
action find
entity Q3572
relation P1376
type Q15617994
['Q1953', 'P1376', {'concept': 'Q15617994'}] ['Q3616', 'P1376', {'concept': 'Q15617994'}] ['Q3572', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?u ) { ( resource:Q1953 ) ( resource:Q3616 ) } . ?u property:P1376 ?e }
Yerevan Tehran Tunis
action union
action filter_type
action find
entity Yerevan
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Tehran
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Tunis
relation capital of
type designation for an administrative territorial entity
['Yerevan', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Tehran', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Tunis', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?u ) { ( resource:Yerevan ) ( resource:Tehran ) } . ?u property:capital_of ?e }
[]
designation for an administrative territorial entity
Q399 Q794 Q948
SYSTEM
Armenia, Iran, Tunisia
Q399 Q794 Q948
(Q1953,P1376,c(Q15617994)) (Q3616,P1376,c(Q15617994)) (Q3572,P1376,c(Q15617994))
action union
action filter_type
action find
entity Q1953
relation P1376
type Q15617994
action filter_type
action find
entity Q3616
relation P1376
type Q15617994
action filter_type
action find
entity Q3572
relation P1376
type Q15617994
[ANSWERS] have Yerevan, Tehran and Tunis have their first city
['Q1953', 'P1376', {'concept': 'Q15617994'}] ['Q3616', 'P1376', {'concept': 'Q15617994'}] ['Q3572', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?u ) { ( resource:Q1953 ) ( resource:Q3616 ) } . ?u property:P1376 ?e }
Armenia Iran Tunisia
Armenia, Iran and Tunisia have Yerevan, Tehran and Tunis have their first city
Armenia Iran Tunisia
action union
action filter_type
action find
entity Yerevan
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Tehran
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Tunis
relation capital of
type designation for an administrative territorial entity
['Yerevan', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Tehran', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Tunis', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?u ) { ( resource:Yerevan ) ( resource:Tehran ) } . ?u property:capital_of ?e }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q399 Q794 Q948
P36
Q515
USER
Which cities are called the capital of those administrative territories ?
(Q399,P36,c(Q515)) (Q794,P36,c(Q515)) (Q948,P36,c(Q515))
action filter_type
action find
entity prev_answer
relation P36
type Q515
['Q399', 'P36', {'concept': 'Q515'}] ['Q794', 'P36', {'concept': 'Q515'}] ['Q948', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?y ) { ( resource:Q399 ) ( resource:Q794 ) ( resource:Q948 ) } . ?y property:P36 ?i . ?i rdf:type ontology:Q515 }
Armenia Iran Tunisia
action filter_type
action find
entity prev_answer
relation capital
type city
['Armenia', 'capital', {'concept': 'city'}] ['Iran', 'capital', {'concept': 'city'}] ['Tunisia', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?y ) { ( resource:Armenia ) ( resource:Iran ) ( resource:Tunisia ) } . ?y property:capital ?i . ?i rdf:type ontology:city }
[]
city
Q1953 Q3616 Q3572
SYSTEM
Yerevan, Tehran, Tunis
Q1953 Q3616 Q3572
(Q399,P36,c(Q515)) (Q794,P36,c(Q515)) (Q948,P36,c(Q515))
action filter_type
action find
entity prev_answer
relation P36
type Q515
[ANSWERS] are called the capital of those administrative territories
['Q399', 'P36', {'concept': 'Q515'}] ['Q794', 'P36', {'concept': 'Q515'}] ['Q948', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?y ) { ( resource:Q399 ) ( resource:Q794 ) ( resource:Q948 ) } . ?y property:P36 ?i . ?i rdf:type ontology:Q515 }
Yerevan Tehran Tunis
Yerevan, Tehran and Tunis are called the capital of those administrative territories
Yerevan Tehran Tunis
action filter_type
action find
entity prev_answer
relation capital
type city
['Armenia', 'capital', {'concept': 'city'}] ['Iran', 'capital', {'concept': 'city'}] ['Tunisia', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?y ) { ( resource:Armenia ) ( resource:Iran ) ( resource:Tunisia ) } . ?y property:capital ?i . ?i rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1953 Q3616 Q3572
P937
Q502895
USER
Who have those cities as their work location ?
(c(Q502895),P937,Q1953) (c(Q502895),P937,Q3616) (c(Q502895),P937,Q3572)
action filter_type
action find_reverse
entity prev_answer
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q1953'] [{'concept': 'Q502895'}, 'P937', 'Q3616'] [{'concept': 'Q502895'}, 'P937', 'Q3572']
SELECT DISTINCT ?r WHERE { ?r property:P937 ?n . ?r rdf:type ontology:Q502895 . VALUES ( ?n ) { ( resource:Q1953 ) ( resource:Q3616 ) ( resource:Q3572 ) } }
Yerevan Tehran Tunis
action filter_type
action find_reverse
entity prev_answer
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Yerevan'] [{'concept': 'common name'}, 'work location', 'Tehran'] [{'concept': 'common name'}, 'work location', 'Tunis']
SELECT DISTINCT ?r WHERE { ?r property:work_location ?n . ?r rdf:type ontology:common_name . VALUES ( ?n ) { ( resource:Yerevan ) ( resource:Tehran ) ( resource:Tunis ) } }
[]
common name
Q126633 Q533947 Q2545480
SYSTEM
Marjane Satrapi, Alexander Tamanian, Walter Maria Guggenheimer
Q533947 Q328587 Q15805877 Q2545480 Q126633 Q113768 Q468864
(c(Q502895),P937,Q1953) (c(Q502895),P937,Q3616) (c(Q502895),P937,Q3572)
action filter_type
action find_reverse
entity prev_answer
relation P937
type Q502895
[ANSWERS] have those cities as their work location
[{'concept': 'Q502895'}, 'P937', 'Q1953'] [{'concept': 'Q502895'}, 'P937', 'Q3616'] [{'concept': 'Q502895'}, 'P937', 'Q3572']
SELECT DISTINCT ?r WHERE { ?r property:P937 ?n . ?r rdf:type ontology:Q502895 . VALUES ( ?n ) { ( resource:Q1953 ) ( resource:Q3616 ) ( resource:Q3572 ) } }
Alexander Tamanian Shahram Entekhabi Khosrow Bagheri Walter Maria Guggenheimer Marjane Satrapi Jakob Eduard Polak Lina Ben Mhenni
Marjane Satrapi, Alexander Tamanian and Walter Maria Guggenheimer have those cities as their work location
Marjane Satrapi Alexander Tamanian Walter Maria Guggenheimer
action filter_type
action find_reverse
entity prev_answer
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Yerevan'] [{'concept': 'common name'}, 'work location', 'Tehran'] [{'concept': 'common name'}, 'work location', 'Tunis']
SELECT DISTINCT ?r WHERE { ?r property:work_location ?n . ?r rdf:type ontology:common_name . VALUES ( ?n ) { ( resource:Yerevan ) ( resource:Tehran ) ( resource:Tunis ) } }
[]