Simple Question (Direct)
Simple Question
Q454951
P21
Q290
USER
What is the sex of Míriam Colón ?
(Q454951,P21,c(Q290))
action filter_type
action find
entity Q454951
relation P21
type Q290
['Q454951', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q454951 property:P21 ?c . ?c rdf:type ontology:Q290 }
Míriam Colón
action filter_type
action find
entity Míriam Colón
relation gender
type sex
['Míriam Colón', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Míriam_Colón property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q454951,P21,c(Q290))
action filter_type
action find
entity Q454951
relation P21
type Q290
The sex of Míriam Colón is the [ANSWER]
['Q454951', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q454951 property:P21 ?c . ?c rdf:type ontology:Q290 }
female
The sex of Míriam Colón is the female
female
action filter_type
action find
entity Míriam Colón
relation gender
type sex
['Míriam Colón', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Míriam_Colón property:gender ?c . ?c rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q454951
P161
Q838948
USER
Which works of art have that person as actor ?
(c(Q838948),P161,Q6581072)
action filter_type
action find_reverse
entity Q454951
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q6581072']
SELECT DISTINCT ?x WHERE { ?x property:P161 resource:Q454951 . ?x rdf:type ontology:Q838948 }
Míriam Colón
action filter_type
action find_reverse
entity Míriam Colón
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'female']
SELECT DISTINCT ?x WHERE { ?x property:cast_member resource:Míriam_Colón . ?x rdf:type ontology:work_of_art }
[]
work of art
Q132134 Q1059164 Q16993300
SYSTEM
Goal III: Taking on the World, Goal II: Living the Dream, Top Five
Q132134 Q25136406 Q16993300 Q930332 Q174513 Q312394 Q2299188 Q1485385 Q47075 Q900708 Q869862 Q426930 Q1059164 Q7728298
(c(Q838948),P161,Q6581072)
action filter_type
action find_reverse
entity Q454951
relation P161
type Q838948
Goal III: taking on the World, Goal II: Living the Dream and Top Five have that person as actor
[{'concept': 'Q838948'}, 'P161', 'Q6581072']
SELECT DISTINCT ?x WHERE { ?x property:P161 resource:Q454951 . ?x rdf:type ontology:Q838948 }
Goal III: Taking on the World The Desperate Mission Top Five Lone Star One-Eyed Jacks The House of the Spirits All the Pretty Horses Gloria Scarface Sabrina Goal! The Appaloosa Goal II: Living the Dream The Cry
Goal III: taking on the World, Goal II: Living the Dream and Top Five have that person as actor
Goal III: Taking on the World Goal II: Living the Dream Top Five
action filter_type
action find_reverse
entity Míriam Colón
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'female']
SELECT DISTINCT ?x WHERE { ?x property:cast_member resource:Míriam_Colón . ?x rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q454951
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Míriam Colón ?
(Q454951,P27,c(Q15617994))
action filter_type
action find
entity Q454951
relation P27
type Q15617994
['Q454951', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q454951 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
Míriam Colón
action filter_type
action find
entity Míriam Colón
relation country of citizenship
type designation for an administrative territorial entity
['Míriam Colón', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Míriam_Colón property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q454951,P27,c(Q15617994))
action filter_type
action find
entity Q454951
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Míriam Colón
['Q454951', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q454951 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
United States of America
United States of America is the country of citizenship of Míriam Colón
United States of America
action filter_type
action find
entity Míriam Colón
relation country of citizenship
type designation for an administrative territorial entity
['Míriam Colón', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Míriam_Colón property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7154174
Q15617994
USER
And how about Paul Vredeman de Vries?
(Q7154174,P27,c(Q15617994))
action filter_type
action find
entity Q7154174
relation P27
type Q15617994
['Q7154174', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q7154174 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Paul Vredeman de Vries
action filter_type
action find
entity Paul Vredeman de Vries
relation country of citizenship
type designation for an administrative territorial entity
['Paul Vredeman de Vries', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Paul_Vredeman_de_Vries property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55
SYSTEM
Netherlands
Q55
(Q7154174,P27,c(Q15617994))
action filter_type
action find
entity Q7154174
relation P27
type Q15617994
[ANSWER]
['Q7154174', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q7154174 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Netherlands
Netherlands
action filter_type
action find
entity Paul Vredeman de Vries
relation country of citizenship
type designation for an administrative territorial entity
['Paul Vredeman de Vries', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Paul_Vredeman_de_Vries property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P530
Q15617994 Q1048835
USER
How many administrative territories or political territories have a diplomatic relationship with that administrative territory ?
(Q55,P530,c(Q15617994)) (Q55,P530,c(Q1048835)) (Q55,P530,c(Q15617994)) (Q55,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q55
relation P530
type Q15617994
action filter_type
action find
entity Q55
relation P530
type Q1048835
['Q55', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q1048835'}] ['Q55', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { { ?u rdf:type ontology:Q1048835 . resource:Q55 property:P530 ?u } UNION { resource:Q55 property:P530 ?u . ?u rdf:type ontology:Q15617994 } }
action count
action union
action filter_type
action find
entity Netherlands
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Netherlands
relation diplomatic relation
type political territorial entity
['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { { ?u rdf:type ontology:political_territorial_entity . resource:Netherlands property:diplomatic_relation ?u } UNION { resource:Netherlands property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
3
Q408 Q38 Q183
(Q55,P530,c(Q15617994)) (Q55,P530,c(Q1048835)) (Q55,P530,c(Q15617994)) (Q55,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q55
relation P530
type Q15617994
action filter_type
action find
entity Q55
relation P530
type Q1048835
[ANSWER]
['Q55', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q1048835'}] ['Q55', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { { ?u rdf:type ontology:Q1048835 . resource:Q55 property:P530 ?u } UNION { resource:Q55 property:P530 ?u . ?u rdf:type ontology:Q15617994 } }
Australia Italy Germany
3
action count
action union
action filter_type
action find
entity Netherlands
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Netherlands
relation diplomatic relation
type political territorial entity
['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { { ?u rdf:type ontology:political_territorial_entity . resource:Netherlands property:diplomatic_relation ?u } UNION { resource:Netherlands property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q30 Q454951
P161 P495
Q15416
USER
Which television programs stars Míriam Colón as actor and originated in United States of America ?
AND((c(Q15416),P161,Q454951), (c(Q15416),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q454951
relation P161
action find_reverse
entity Q30
relation P495
type Q15416
{'AND': [[{'concept': 'Q15416'}, 'P161', 'Q454951'], [{'concept': 'Q15416'}, 'P495', 'Q30']]}
SELECT DISTINCT ?h WHERE { ?h property:P161 resource:Q454951 . ?h property:P495 resource:Q30 . ?h rdf:type ontology:Q15416 }
United States of America Míriam Colón
action filter_type
action intersection
action find_reverse
entity Míriam Colón
relation cast member
action find_reverse
entity United States of America
relation country of origin
type television program
{'AND': [[{'concept': 'television program'}, 'cast member', 'Míriam Colón'], [{'concept': 'television program'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?h WHERE { ?h property:cast_member resource:Míriam_Colón . ?h property:country_of_origin resource:United_States_of_America . ?h rdf:type ontology:television_program }
[]
television program
Q4733993
SYSTEM
Almost a Woman
Q4733993
AND((c(Q15416),P161,Q454951), (c(Q15416),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q454951
relation P161
action find_reverse
entity Q30
relation P495
type Q15416
[ANSWER] stars Míriam Colón as actor and originated in United States of America
{'AND': [[{'concept': 'Q15416'}, 'P161', 'Q454951'], [{'concept': 'Q15416'}, 'P495', 'Q30']]}
SELECT DISTINCT ?h WHERE { ?h property:P161 resource:Q454951 . ?h property:P495 resource:Q30 . ?h rdf:type ontology:Q15416 }
Almost a Woman
Almost a Woman stars Míriam Colón as actor and originated in United States of America
Almost a Woman
action filter_type
action intersection
action find_reverse
entity Míriam Colón
relation cast member
action find_reverse
entity United States of America
relation country of origin
type television program
{'AND': [[{'concept': 'television program'}, 'cast member', 'Míriam Colón'], [{'concept': 'television program'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?h WHERE { ?h property:cast_member resource:Míriam_Colón . ?h property:country_of_origin resource:United_States_of_America . ?h rdf:type ontology:television_program }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q4733993 Q30 Q7698406
P495
Q15617994
USER
Does that television program originates at United States of America and Temple, Glasgow ?
(Q4733993,P495,Q30) (Q4733993,P495,Q7698406)
action is_in
entity Q4733993
action intersection
action find_reverse
entity Q30
relation P495
action find_reverse
entity Q7698406
relation P495
['Q4733993', 'P495', 'Q30'] ['Q4733993', 'P495', 'Q7698406']
ASK WHERE { resource:Q4733993 property:P495 resource:Q30 . resource:Q4733993 property:P495 resource:Q7698406 }
Almost a Woman United States of America Temple, Glasgow
action is_in
entity Almost a Woman
action intersection
action find_reverse
entity United States of America
relation country of origin
action find_reverse
entity Temple, Glasgow
relation country of origin
['Almost a Woman', 'country of origin', 'United States of America'] ['Almost a Woman', 'country of origin', 'Temple, Glasgow']
ASK WHERE { resource:Almost_a_Woman property:country_of_origin resource:United_States_of_America . resource:Almost_a_Woman property:country_of_origin resource:Temple,_Glasgow }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q4733993,P495,Q30) (Q4733993,P495,Q7698406)
action is_in
entity Q4733993
action intersection
action find_reverse
entity Q30
relation P495
action find_reverse
entity Q7698406
relation P495
[ANSWER]
['Q4733993', 'P495', 'Q30'] ['Q4733993', 'P495', 'Q7698406']
ASK WHERE { resource:Q4733993 property:P495 resource:Q30 . resource:Q4733993 property:P495 resource:Q7698406 }
YES and NO respectively
action is_in
entity Almost a Woman
action intersection
action find_reverse
entity United States of America
relation country of origin
action find_reverse
entity Temple, Glasgow
relation country of origin
['Almost a Woman', 'country of origin', 'United States of America'] ['Almost a Woman', 'country of origin', 'Temple, Glasgow']
ASK WHERE { resource:Almost_a_Woman property:country_of_origin resource:United_States_of_America . resource:Almost_a_Woman property:country_of_origin resource:Temple,_Glasgow }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12873462 Q7698406
P17
Q15617994
USER
Which administrative territories do Temple, Glasgow or Ampelia belong to ?
OR((Q7698406,P17,c(Q15617994)), (Q12873462,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7698406
relation P17
action find
entity Q12873462
relation P17
type Q15617994
{'OR': [['Q7698406', 'P17', {'concept': 'Q15617994'}], ['Q12873462', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?b ) { ( resource:Q7698406 ) ( resource:Q12873462 ) } . ?b property:P17 ?z } . ?z rdf:type ontology:Q15617994 }
Ampelia Temple, Glasgow
action filter_type
action union
action find
entity Temple, Glasgow
relation country
action find
entity Ampelia
relation country
type designation for an administrative territorial entity
{'OR': [['Temple, Glasgow', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ampelia', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?b ) { ( resource:Temple,_Glasgow ) ( resource:Ampelia ) } . ?b property:country ?z } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145 Q41
SYSTEM
United Kingdom, Greece
Q145 Q41
OR((Q7698406,P17,c(Q15617994)), (Q12873462,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7698406
relation P17
action find
entity Q12873462
relation P17
type Q15617994
Temple , Glasgow or Ampelia belong to the [ANSWERS]
{'OR': [['Q7698406', 'P17', {'concept': 'Q15617994'}], ['Q12873462', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?b ) { ( resource:Q7698406 ) ( resource:Q12873462 ) } . ?b property:P17 ?z } . ?z rdf:type ontology:Q15617994 }
United Kingdom Greece
Temple , Glasgow or Ampelia belong to the United Kingdom and Greece
United Kingdom Greece
action filter_type
action union
action find
entity Temple, Glasgow
relation country
action find
entity Ampelia
relation country
type designation for an administrative territorial entity
{'OR': [['Temple, Glasgow', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ampelia', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?b ) { ( resource:Temple,_Glasgow ) ( resource:Ampelia ) } . ?b property:country ?z } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6234428
P27
Q502895
USER
Are John Fusco a citizen of those administrative territories ?
(Q6234428,P27,Q145) (Q6234428,P27,Q41)
action is_in
entity prev_answer
action find
entity Q6234428
relation P27
['Q6234428', 'P27', 'Q145'] ['Q6234428', 'P27', 'Q41']
ASK WHERE { VALUES ( ?m ) { ( resource:Q145 ) ( resource:Q41 ) } . resource:Q6234428 property:P27 ?m }
John Fusco
action is_in
entity prev_answer
action find
entity John Fusco
relation country of citizenship
['John Fusco', 'country of citizenship', 'United Kingdom'] ['John Fusco', 'country of citizenship', 'Greece']
ASK WHERE { VALUES ( ?m ) { ( resource:United_Kingdom ) ( resource:Greece ) } . resource:John_Fusco property:country_of_citizenship ?m }
[]
common name
SYSTEM
NO
(Q6234428,P27,Q145) (Q6234428,P27,Q41)
action is_in
entity prev_answer
action find
entity Q6234428
relation P27
[ANSWER]
['Q6234428', 'P27', 'Q145'] ['Q6234428', 'P27', 'Q41']
ASK WHERE { VALUES ( ?m ) { ( resource:Q145 ) ( resource:Q41 ) } . resource:Q6234428 property:P27 ?m }
No
action is_in
entity prev_answer
action find
entity John Fusco
relation country of citizenship
['John Fusco', 'country of citizenship', 'United Kingdom'] ['John Fusco', 'country of citizenship', 'Greece']
ASK WHERE { VALUES ( ?m ) { ( resource:United_Kingdom ) ( resource:Greece ) } . resource:John_Fusco property:country_of_citizenship ?m }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P85
Q7725634
USER
Which literary work is the anthem for United Kingdom ?
(Q145,P85,c(Q7725634))
action filter_type
action find
entity Q145
relation P85
type Q7725634
['Q145', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q7725634 . resource:Q145 property:P85 ?k }
United Kingdom
action filter_type
action find
entity United Kingdom
relation anthem
type literary work
['United Kingdom', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:literary_work . resource:United_Kingdom property:anthem ?k }
[]
literary work
Q40807
SYSTEM
God Save the Queen
Q40807
(Q145,P85,c(Q7725634))
action filter_type
action find
entity Q145
relation P85
type Q7725634
God save the Queen is the anthem for United Kingdom
['Q145', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q7725634 . resource:Q145 property:P85 ?k }
God Save the Queen
God save the Queen is the anthem for United Kingdom
God Save the Queen
action filter_type
action find
entity United Kingdom
relation anthem
type literary work
['United Kingdom', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:literary_work . resource:United_Kingdom property:anthem ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P163
Q14660
USER
Which flag is associated with United Kingdom ?
(Q145,P163,c(Q14660))
action filter_type
action find
entity Q145
relation P163
type Q14660
['Q145', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?u WHERE { resource:Q145 property:P163 ?u . ?u rdf:type ontology:Q14660 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation flag
type flag
['United Kingdom', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?u WHERE { resource:United_Kingdom property:flag ?u . ?u rdf:type ontology:flag }
[]
flag
Q83278
SYSTEM
flag of the United Kingdom
Q83278
(Q145,P163,c(Q14660))
action filter_type
action find
entity Q145
relation P163
type Q14660
The [ANSWER] is associated with United Kingdom
['Q145', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?u WHERE { resource:Q145 property:P163 ?u . ?u rdf:type ontology:Q14660 }
flag of the United Kingdom
The flag of the United Kingdom is associated with United Kingdom
flag of the United Kingdom
action filter_type
action find
entity United Kingdom
relation flag
type flag
['United Kingdom', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?u WHERE { resource:United_Kingdom property:flag ?u . ?u rdf:type ontology:flag }
[]