Simple Question (Direct)
Simple Question
Q303299
P69
Q3918
USER
Which university is Tobias Ellwood an alumni of ?
(Q303299,P69,c(Q3918))
action filter_type
action find
entity Q303299
relation P69
type Q3918
['Q303299', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q3918 . resource:Q303299 property:P69 ?g }
Tobias Ellwood
action filter_type
action find
entity Tobias Ellwood
relation educated at
type university
['Tobias Ellwood', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:university . resource:Tobias_Ellwood property:educated_at ?g }
[]
university
Q1434547
SYSTEM
Loughborough University
Q1434547
(Q303299,P69,c(Q3918))
action filter_type
action find
entity Q303299
relation P69
type Q3918
Which university is Tobias Ellwood an alumni of
['Q303299', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q3918 . resource:Q303299 property:P69 ?g }
Loughborough University
Which university is Tobias Ellwood an alumni of
Loughborough University
action filter_type
action find
entity Tobias Ellwood
relation educated at
type university
['Tobias Ellwood', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:university . resource:Tobias_Ellwood property:educated_at ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q303299
P241
Q781132
USER
Which military branch contains Tobias Ellwood as its part ?
(Q303299,P241,c(Q781132))
action filter_type
action find
entity Q303299
relation P241
type Q781132
['Q303299', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q781132 . resource:Q303299 property:P241 ?p }
Tobias Ellwood
action filter_type
action find
entity Tobias Ellwood
relation military branch
type military branch
['Tobias Ellwood', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:military_branch . resource:Tobias_Ellwood property:military_branch ?p }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
(Q303299,P241,c(Q781132))
action filter_type
action find
entity Q303299
relation P241
type Q781132
[ANSWER] contains Tobias Ellwood as its part
['Q303299', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q781132 . resource:Q303299 property:P241 ?p }
British Army
British Army contains Tobias Ellwood as its part
British Army
action filter_type
action find
entity Tobias Ellwood
relation military branch
type military branch
['Tobias Ellwood', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:military_branch . resource:Tobias_Ellwood property:military_branch ?p }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q222595
P241
Q1935049 Q874405
USER
How many military schools and social groups are affiliated to the military branch named British Army ?
(c(Q1935049),P241,Q222595) (c(Q874405),P241,Q222595)
action count
action union
action filter_type
action find_reverse
entity Q222595
relation P241
type Q1935049
action filter_type
action find_reverse
entity Q222595
relation P241
type Q874405
[{'concept': 'Q1935049'}, 'P241', 'Q222595'] [{'concept': 'Q874405'}, 'P241', 'Q222595']
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:Q874405 ) ( ontology:Q1935049 ) } }
British Army
action count
action union
action filter_type
action find_reverse
entity British Army
relation military branch
type military school
action filter_type
action find_reverse
entity British Army
relation military branch
type social group
[{'concept': 'military school'}, 'military branch', 'British Army'] [{'concept': 'social group'}, 'military branch', 'British Army']
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:social_group ) ( ontology:military_school ) } }
[]
military school social group
SYSTEM
1 military schools and 2 social groups
Q2587335 Q575618 Q1606162
(c(Q1935049),P241,Q222595) (c(Q874405),P241,Q222595)
action count
action union
action filter_type
action find_reverse
entity Q222595
relation P241
type Q1935049
action filter_type
action find_reverse
entity Q222595
relation P241
type Q874405
[ANSWER]
[{'concept': 'Q1935049'}, 'P241', 'Q222595'] [{'concept': 'Q874405'}, 'P241', 'Q222595']
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:Q874405 ) ( ontology:Q1935049 ) } }
Royal Artillery Royal Military Academy Sandhurst Royal Pioneer Corps
1 military schools and 2 social groups
action count
action union
action filter_type
action find_reverse
entity British Army
relation military branch
type military school
action filter_type
action find_reverse
entity British Army
relation military branch
type social group
[{'concept': 'military school'}, 'military branch', 'British Army'] [{'concept': 'social group'}, 'military branch', 'British Army']
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:social_group ) ( ontology:military_school ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2938362 Q303299
P19
Q56061
USER
Which administrative territories were Tobias Ellwood or Aert van Waes born ?
OR((Q303299,P19,c(Q56061)), (Q2938362,P19,c(Q56061)))
action filter_type
action union
action find
entity Q303299
relation P19
action find
entity Q2938362
relation P19
type Q56061
{'OR': [['Q303299', 'P19', {'concept': 'Q56061'}], ['Q2938362', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q2938362 property:P19 ?h } UNION { resource:Q303299 property:P19 ?h } } . ?h rdf:type ontology:Q56061 }
Aert van Waes Tobias Ellwood
action filter_type
action union
action find
entity Tobias Ellwood
relation place of birth
action find
entity Aert van Waes
relation place of birth
type administrative territorial entity
{'OR': [['Tobias Ellwood', 'place of birth', {'concept': 'administrative territorial entity'}], ['Aert van Waes', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Aert_van_Waes property:place_of_birth ?h } UNION { resource:Tobias_Ellwood property:place_of_birth ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84125 Q60
SYSTEM
Gouda, New York City
Q84125 Q60
OR((Q303299,P19,c(Q56061)), (Q2938362,P19,c(Q56061)))
action filter_type
action union
action find
entity Q303299
relation P19
action find
entity Q2938362
relation P19
type Q56061
[ANSWERS] were Tobias Ellwood or Aert van Waes born
{'OR': [['Q303299', 'P19', {'concept': 'Q56061'}], ['Q2938362', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q2938362 property:P19 ?h } UNION { resource:Q303299 property:P19 ?h } } . ?h rdf:type ontology:Q56061 }
Gouda New York City
Gouda and New York City were Tobias Ellwood or Aert van Waes born
Gouda New York City
action filter_type
action union
action find
entity Tobias Ellwood
relation place of birth
action find
entity Aert van Waes
relation place of birth
type administrative territorial entity
{'OR': [['Tobias Ellwood', 'place of birth', {'concept': 'administrative territorial entity'}], ['Aert van Waes', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Aert_van_Waes property:place_of_birth ?h } UNION { resource:Tobias_Ellwood property:place_of_birth ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q84125 Q60
P190
Q56061
USER
Which administrative territories are twin towns of Gouda and New York City ?
(Q84125,P190,c(Q56061)) (Q60,P190,c(Q56061))
action union
action filter_type
action find
entity Q84125
relation P190
type Q56061
action filter_type
action find
entity Q60
relation P190
type Q56061
['Q84125', 'P190', {'concept': 'Q56061'}] ['Q60', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { { ?n rdf:type ontology:Q56061 . resource:Q84125 property:P190 ?n } UNION { resource:Q60 property:P190 ?n . ?n rdf:type ontology:Q56061 } }
Gouda New York City
action union
action filter_type
action find
entity Gouda
relation sister city
type administrative territorial entity
action filter_type
action find
entity New York City
relation sister city
type administrative territorial entity
['Gouda', 'sister city', {'concept': 'administrative territorial entity'}] ['New York City', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { ?n rdf:type ontology:administrative_territorial_entity . resource:Gouda property:sister_city ?n } UNION { resource:New_York_City property:sister_city ?n . ?n rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q2807 Q1781 Q956
SYSTEM
Madrid, Budapest, Beijing
Q170497 Q588905 Q3630 Q3561 Q33935 Q34820 Q51103 Q34647 Q2807 Q956 Q1781 Q84 Q85 Q1490 Q1218 Q585
(Q84125,P190,c(Q56061)) (Q60,P190,c(Q56061))
action union
action filter_type
action find
entity Q84125
relation P190
type Q56061
action filter_type
action find
entity Q60
relation P190
type Q56061
[ANSWERS] are twin towns of Gouda and New York City
['Q84125', 'P190', {'concept': 'Q56061'}] ['Q60', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { { ?n rdf:type ontology:Q56061 . resource:Q84125 property:P190 ?n } UNION { resource:Q60 property:P190 ?n . ?n rdf:type ontology:Q56061 } }
Gloucester Finsterwalde Jakarta Algiers Tel Aviv Santo Domingo Cali Johannesburg Madrid Beijing Budapest London Cairo Tokyo Jerusalem Oslo
Madrid, Budapest and Beijing are twin towns of Gouda and New York City
Madrid Budapest Beijing
action union
action filter_type
action find
entity Gouda
relation sister city
type administrative territorial entity
action filter_type
action find
entity New York City
relation sister city
type administrative territorial entity
['Gouda', 'sister city', {'concept': 'administrative territorial entity'}] ['New York City', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { ?n rdf:type ontology:administrative_territorial_entity . resource:Gouda property:sister_city ?n } UNION { resource:New_York_City property:sister_city ?n . ?n rdf:type ontology:administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2807 Q1781 Q956
P159
Q874405
USER
Which social groups have HQ at Madrid, Budapest and Beijing ?
(c(Q874405),P159,Q2807) (c(Q874405),P159,Q1781) (c(Q874405),P159,Q956)
action union
action filter_type
action find_reverse
entity Q2807
relation P159
type Q874405
action filter_type
action find_reverse
entity Q1781
relation P159
type Q874405
action filter_type
action find_reverse
entity Q956
relation P159
type Q874405
[{'concept': 'Q874405'}, 'P159', 'Q2807'] [{'concept': 'Q874405'}, 'P159', 'Q1781'] [{'concept': 'Q874405'}, 'P159', 'Q956']
SELECT DISTINCT ?t WHERE { { ?t rdf:type ontology:Q874405 . ?t property:P159 resource:Q2807 } UNION { ?t property:P159 resource:Q1781 . ?t rdf:type ontology:Q874405 } }
Madrid Budapest Beijing
action union
action filter_type
action find_reverse
entity Madrid
relation headquarters location
type social group
action filter_type
action find_reverse
entity Budapest
relation headquarters location
type social group
action filter_type
action find_reverse
entity Beijing
relation headquarters location
type social group
[{'concept': 'social group'}, 'headquarters location', 'Madrid'] [{'concept': 'social group'}, 'headquarters location', 'Budapest'] [{'concept': 'social group'}, 'headquarters location', 'Beijing']
SELECT DISTINCT ?t WHERE { { ?t rdf:type ontology:social_group . ?t property:headquarters_location resource:Madrid } UNION { ?t property:headquarters_location resource:Budapest . ?t rdf:type ontology:social_group } }
[]
social group
Q1891189 Q25343758 Q8963070
SYSTEM
Patrimonio Nacional, Folk-Lore Castellano, Alberto and Elena Cortina Foundation
Q8963070 Q958209 Q1674150 Q1891189 Q5321472 Q17054869 Q5871651 Q25059260 Q6041359 Q20775367 Q2017801 Q25343758 Q3814047 Q16931902 Q17080151 Q1326397 Q5099536 Q7200189 Q5604387 Q7544627 Q1073337 Q7691162 Q5100602 Q907158 Q1042167 Q7477846 Q965133 Q10902352 Q2604300 Q5059541
(c(Q874405),P159,Q2807) (c(Q874405),P159,Q1781) (c(Q874405),P159,Q956)
action union
action filter_type
action find_reverse
entity Q2807
relation P159
type Q874405
action filter_type
action find_reverse
entity Q1781
relation P159
type Q874405
action filter_type
action find_reverse
entity Q956
relation P159
type Q874405
[ANSWERS] have HQ at Madrid, Budapest and Beijing
[{'concept': 'Q874405'}, 'P159', 'Q2807'] [{'concept': 'Q874405'}, 'P159', 'Q1781'] [{'concept': 'Q874405'}, 'P159', 'Q956']
SELECT DISTINCT ?t WHERE { { ?t rdf:type ontology:Q874405 . ?t property:P159 resource:Q2807 } UNION { ?t property:P159 resource:Q1781 . ?t rdf:type ontology:Q874405 } }
Alberto and Elena Cortina Foundation Springfield Islamic Commission of Spain Patrimonio Nacional E-USOC Spanish Federation of Sportspeople with Intellectual Disabilities FRIDE Taipei Economic and Cultural Office in Spain Instituto Madrileño de Estudios Avanzados Confederación Española de Cajas de Ahorros Benéficas Spanish Maritime Safety Agency Folk-Lore Castellano Comunes Collective Magyar Tájékozódási Futó Szövetség Roma Education Fund Hungarian Civil Liberties Union China-Africa Development Fund PlaNet Finance China Greenpeace East Asia Smile Angel Foundation China National Nuclear Corporation Teach For China Chinese Radio Sports Association State Ethnic Affairs Commission Ministry of Education of the People's Republic of China National Health and Family Planning Commission Sohu Beijing Loving Animal Foundation Ministry of Health of the People's Republic of China Center for China and Globalization
Patrimonio Nacional, Folk-Lore Castellano and Alberto and Elena Cortina Foundation have HQ at Madrid, Budapest and Beijing
Patrimonio Nacional Folk-Lore Castellano Alberto and Elena Cortina Foundation
action union
action filter_type
action find_reverse
entity Madrid
relation headquarters location
type social group
action filter_type
action find_reverse
entity Budapest
relation headquarters location
type social group
action filter_type
action find_reverse
entity Beijing
relation headquarters location
type social group
[{'concept': 'social group'}, 'headquarters location', 'Madrid'] [{'concept': 'social group'}, 'headquarters location', 'Budapest'] [{'concept': 'social group'}, 'headquarters location', 'Beijing']
SELECT DISTINCT ?t WHERE { { ?t rdf:type ontology:social_group . ?t property:headquarters_location resource:Madrid } UNION { ?t property:headquarters_location resource:Budapest . ?t rdf:type ontology:social_group } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1891189
P127
Q41176
USER
Which building is under posessision of that social group ?
(c(Q41176),P127,Q1891189)
action filter_type
action find_reverse
entity Q1891189
relation P127
type Q41176
[{'concept': 'Q41176'}, 'P127', 'Q1891189']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q41176 . ?w property:P127 resource:Q1891189 }
Patrimonio Nacional
action filter_type
action find_reverse
entity Patrimonio Nacional
relation owned by
type building
[{'concept': 'building'}, 'owned by', 'Patrimonio Nacional']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:building . ?w property:owned_by resource:Patrimonio_Nacional }
[]
building
Clarification for simple ques.
Q1891189
SYSTEM
Did you mean Patrimonio Nacional ?
Q1891189 Q25343758 Q8963070
(c(Q41176),P127,Q1891189) (c(Q41176),P127,Q25343758) (c(Q41176),P127,Q8963070)
[ANSWER]
[{'concept': 'Q41176'}, 'P127', 'Q1891189'] [{'concept': 'Q41176'}, 'P127', 'Q25343758'] [{'concept': 'Q41176'}, 'P127', 'Q8963070']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q41176 . ?w property:P127 resource:Q1891189 }
Patrimonio Nacional Folk-Lore Castellano Alberto and Elena Cortina Foundation
Did you mean Patrimonio Nacional ?
Patrimonio Nacional
[{'concept': 'building'}, 'owned by', 'Patrimonio Nacional'] [{'concept': 'building'}, 'owned by', 'Folk-Lore Castellano'] [{'concept': 'building'}, 'owned by', 'Alberto and Elena Cortina Foundation']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:building . ?w property:owned_by resource:Patrimonio_Nacional }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q41176),P127,Q1891189)
[{'concept': 'Q41176'}, 'P127', 'Q1891189']
[{'concept': 'building'}, 'owned by', 'Patrimonio Nacional']
[]
Q171517
SYSTEM
Royal Palace of Madrid
Q171517
(c(Q41176),P127,Q1891189)
action filter_type
action find_reverse
entity Q1891189
relation P127
type Q41176
[ANSWER] is under posessision of that social group
[{'concept': 'Q41176'}, 'P127', 'Q1891189']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q41176 . ?w property:P127 resource:Q1891189 }
Royal Palace of Madrid
Royal Palace of Madrid is under posessision of that social group
Royal Palace of Madrid
action filter_type
action find_reverse
entity Patrimonio Nacional
relation owned by
type building
[{'concept': 'building'}, 'owned by', 'Patrimonio Nacional']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:building . ?w property:owned_by resource:Patrimonio_Nacional }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q171517
P276
Q838948
USER
Which work of art has its location as that building ?
(c(Q838948),P276,Q171517)
action filter_type
action find_reverse
entity Q171517
relation P276
type Q838948
[{'concept': 'Q838948'}, 'P276', 'Q171517']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q838948 . ?p property:P276 resource:Q171517 }
Royal Palace of Madrid
action filter_type
action find_reverse
entity Royal Palace of Madrid
relation location
type work of art
[{'concept': 'work of art'}, 'location', 'Royal Palace of Madrid']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:work_of_art . ?p property:location resource:Royal_Palace_of_Madrid }
[]
work of art
Q19801071
SYSTEM
Napoleon Crossing the Alps
Q19801071
(c(Q838948),P276,Q171517)
action filter_type
action find_reverse
entity Q171517
relation P276
type Q838948
Napoleon crossing the Alps has its location as that building
[{'concept': 'Q838948'}, 'P276', 'Q171517']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q838948 . ?p property:P276 resource:Q171517 }
Napoleon Crossing the Alps
Napoleon crossing the Alps has its location as that building
Napoleon Crossing the Alps
action filter_type
action find_reverse
entity Royal Palace of Madrid
relation location
type work of art
[{'concept': 'work of art'}, 'location', 'Royal Palace of Madrid']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:work_of_art . ?p property:location resource:Royal_Palace_of_Madrid }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P144
Q838948 Q5398426
USER
Which works of art are more number of television series considered a copy of than that work of art ?
(c(Q5398426),P144,c(Q838948))
action greater
action find_reverse_tuple_counts
relation P144
type Q838948
type Q5398426
action count
action filter_type
action find
entity Q19801071
relation P144
type Q838948
[{'concept': 'Q5398426'}, 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?g ) AS ?m ) WHERE { ?g property:P144 ?r . ?r rdf:type ontology:Q838948 . ?g rdf:type ontology:Q5398426 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z rdf:type ontology:Q838948 . resource:Q19801071 property:P144 ?z } } . FILTER ( ?m > ?k ) }
action greater
action find_reverse_tuple_counts
relation based on
type work of art
type television series
action count
action filter_type
action find
entity Napoleon Crossing the Alps
relation based on
type work of art
[{'concept': 'television series'}, 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?g ) AS ?m ) WHERE { ?g property:based_on ?r . ?r rdf:type ontology:work_of_art . ?g rdf:type ontology:television_series } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z rdf:type ontology:work_of_art . resource:Napoleon_Crossing_the_Alps property:based_on ?z } } . FILTER ( ?m > ?k ) }
[]
work of art television series
Q2337685
SYSTEM
Angels in America: A Gay Fantasia on National Themes
Q2337685
(c(Q5398426),P144,c(Q838948))
action greater
action find_reverse_tuple_counts
relation P144
type Q838948
type Q5398426
action count
action filter_type
action find
entity Q19801071
relation P144
type Q838948
[ANSWER] is more number of television series considered a copy of than that work of art
[{'concept': 'Q5398426'}, 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?g ) AS ?m ) WHERE { ?g property:P144 ?r . ?r rdf:type ontology:Q838948 . ?g rdf:type ontology:Q5398426 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z rdf:type ontology:Q838948 . resource:Q19801071 property:P144 ?z } } . FILTER ( ?m > ?k ) }
Angels in America: A Gay Fantasia on National Themes
Angels in America: A Gay Fantasia on National Themes is more number of television series considered a copy of than that work of art
Angels in America: A Gay Fantasia on National Themes
action greater
action find_reverse_tuple_counts
relation based on
type work of art
type television series
action count
action filter_type
action find
entity Napoleon Crossing the Alps
relation based on
type work of art
[{'concept': 'television series'}, 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?g ) AS ?m ) WHERE { ?g property:based_on ?r . ?r rdf:type ontology:work_of_art . ?g rdf:type ontology:television_series } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z rdf:type ontology:work_of_art . resource:Napoleon_Crossing_the_Alps property:based_on ?z } } . FILTER ( ?m > ?k ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2337685
P50
Q502895
USER
Who authored that work of art ?
(Q2337685,P50,c(Q502895))
action filter_type
action find
entity Q2337685
relation P50
type Q502895
['Q2337685', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q2337685 property:P50 ?a . ?a rdf:type ontology:Q502895 }
Angels in America: A Gay Fantasia on National Themes
action filter_type
action find
entity Angels in America: A Gay Fantasia on National Themes
relation author
type common name
['Angels in America: A Gay Fantasia on National Themes', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Angels_in_America:_A_Gay_Fantasia_on_National_Themes property:author ?a . ?a rdf:type ontology:common_name }
[]
common name
Q704433
SYSTEM
Tony Kushner
Q704433
(Q2337685,P50,c(Q502895))
action filter_type
action find
entity Q2337685
relation P50
type Q502895
[ANSWER] authored that work of art
['Q2337685', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q2337685 property:P50 ?a . ?a rdf:type ontology:Q502895 }
Tony Kushner
Tony Kushner authored that work of art
Tony Kushner
action filter_type
action find
entity Angels in America: A Gay Fantasia on National Themes
relation author
type common name
['Angels in America: A Gay Fantasia on National Themes', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Angels_in_America:_A_Gay_Fantasia_on_National_Themes property:author ?a . ?a rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q704433 Q7723448
P58
Q838948
USER
Is that person a screenwriter of The Clockwork Girl ?
(Q7723448,P58,Q704433)
action is_in
entity Q7723448
action find
entity Q704433
relation P58
['Q7723448', 'P58', 'Q704433']
ASK WHERE { resource:Q704433 property:P58 resource:Q7723448 }
Tony Kushner The Clockwork Girl
action is_in
entity The Clockwork Girl
action find
entity Tony Kushner
relation screenwriter
['The Clockwork Girl', 'screenwriter', 'Tony Kushner']
ASK WHERE { resource:Tony_Kushner property:screenwriter resource:The_Clockwork_Girl }
[]
work of art
SYSTEM
NO
(Q7723448,P58,Q704433)
action is_in
entity Q7723448
action find
entity Q704433
relation P58
[ANSWER]
['Q7723448', 'P58', 'Q704433']
ASK WHERE { resource:Q704433 property:P58 resource:Q7723448 }
No
action is_in
entity The Clockwork Girl
action find
entity Tony Kushner
relation screenwriter
['The Clockwork Girl', 'screenwriter', 'Tony Kushner']
ASK WHERE { resource:Tony_Kushner property:screenwriter resource:The_Clockwork_Girl }
[]