Simple Question (Direct)
Simple Question
Q3986195
P58
Q502895
USER
Which person wrote the script for The Canyon ?
(Q3986195,P58,c(Q502895))
action filter_type
action find
entity Q3986195
relation P58
type Q502895
['Q3986195', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q3986195 property:P58 ?w . ?w rdf:type ontology:Q502895 }
The Canyon
action filter_type
action find
entity The Canyon
relation screenwriter
type common name
['The Canyon', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:The_Canyon property:screenwriter ?w . ?w rdf:type ontology:common_name }
[]
common name
Q7611784
SYSTEM
Steve Allrich
Q7611784
(Q3986195,P58,c(Q502895))
action filter_type
action find
entity Q3986195
relation P58
type Q502895
The [ANSWER] wrote the script for The Canyon
['Q3986195', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q3986195 property:P58 ?w . ?w rdf:type ontology:Q502895 }
Steve Allrich
The Steve Allrich wrote the script for The Canyon
Steve Allrich
action filter_type
action find
entity The Canyon
relation screenwriter
type common name
['The Canyon', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:The_Canyon property:screenwriter ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7611784
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q7611784,P27,c(Q15617994))
action filter_type
action find
entity Q7611784
relation P27
type Q15617994
['Q7611784', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q7611784 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Steve Allrich
action filter_type
action find
entity Steve Allrich
relation country of citizenship
type designation for an administrative territorial entity
['Steve Allrich', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Steve_Allrich property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q7611784,P27,c(Q15617994))
action filter_type
action find
entity Q7611784
relation P27
type Q15617994
The [ANSWER] is the country of citizenship of that person
['Q7611784', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q7611784 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
United States of America
The United States of America is the country of citizenship of that person
United States of America
action filter_type
action find
entity Steve Allrich
relation country of citizenship
type designation for an administrative territorial entity
['Steve Allrich', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Steve_Allrich property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q2839524 Q7611784
P27
Q15617994
USER
And also Mason Marconi
AND((Q7611784,P27,c(Q15617994)), (Q2839524,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q7611784
relation P27
action find
entity Q2839524
relation P27
type Q15617994
{'AND': [['Q7611784', 'P27', {'concept': 'Q15617994'}], ['Q2839524', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { resource:Q7611784 property:P27 ?o . resource:Q2839524 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
Mason Marconi Steve Allrich
action filter_type
action intersection
action find
entity Steve Allrich
relation country of citizenship
action find
entity Mason Marconi
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Steve Allrich', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mason Marconi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { resource:Steve_Allrich property:country_of_citizenship ?o . resource:Mason_Marconi property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q7611784,P27,c(Q15617994)), (Q2839524,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q7611784
relation P27
action find
entity Q2839524
relation P27
type Q15617994
[ANSWER]
{'AND': [['Q7611784', 'P27', {'concept': 'Q15617994'}], ['Q2839524', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { resource:Q7611784 property:P27 ?o . resource:Q2839524 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action intersection
action find
entity Steve Allrich
relation country of citizenship
action find
entity Mason Marconi
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Steve Allrich', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mason Marconi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { resource:Steve_Allrich property:country_of_citizenship ?o . resource:Mason_Marconi property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q30 Q889 Q155
P530
Q15617994
USER
Does that administrative territory have ambassadorial relations with Afghanistan and Brazil ?
(Q30,P530,Q889) (Q30,P530,Q155)
action is_in
entity Q30
action intersection
action find_reverse
entity Q889
relation P530
action find_reverse
entity Q155
relation P530
['Q30', 'P530', 'Q889'] ['Q30', 'P530', 'Q155']
ASK WHERE { resource:Q30 property:P530 resource:Q889 . resource:Q30 property:P530 resource:Q155 }
United States of America Afghanistan Brazil
action is_in
entity United States of America
action intersection
action find_reverse
entity Afghanistan
relation diplomatic relation
action find_reverse
entity Brazil
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Afghanistan'] ['United States of America', 'diplomatic relation', 'Brazil']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Afghanistan . resource:United_States_of_America property:diplomatic_relation resource:Brazil }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q30,P530,Q889) (Q30,P530,Q155)
action is_in
entity Q30
action intersection
action find_reverse
entity Q889
relation P530
action find_reverse
entity Q155
relation P530
[ANSWER]
['Q30', 'P530', 'Q889'] ['Q30', 'P530', 'Q155']
ASK WHERE { resource:Q30 property:P530 resource:Q889 . resource:Q30 property:P530 resource:Q155 }
Yes
action is_in
entity United States of America
action intersection
action find_reverse
entity Afghanistan
relation diplomatic relation
action find_reverse
entity Brazil
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Afghanistan'] ['United States of America', 'diplomatic relation', 'Brazil']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Afghanistan . resource:United_States_of_America property:diplomatic_relation resource:Brazil }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q7611784 Q19810880 Q1028181
P106
Q12737077
USER
Does Steve Allrich have the profession of Crown crown prince and painter ?
(Q7611784,P106,Q19810880) (Q7611784,P106,Q1028181)
action is_in
entity Q7611784
action intersection
action find_reverse
entity Q19810880
relation P106
action find_reverse
entity Q1028181
relation P106
['Q7611784', 'P106', 'Q19810880'] ['Q7611784', 'P106', 'Q1028181']
ASK WHERE { resource:Q7611784 property:P106 resource:Q19810880 . resource:Q7611784 property:P106 resource:Q1028181 }
Steve Allrich Crown crown prince painter
action is_in
entity Steve Allrich
action intersection
action find_reverse
entity Crown crown prince
relation occupation
action find_reverse
entity painter
relation occupation
['Steve Allrich', 'occupation', 'Crown crown prince'] ['Steve Allrich', 'occupation', 'painter']
ASK WHERE { resource:Steve_Allrich property:occupation resource:Crown_crown_prince . resource:Steve_Allrich property:occupation resource:painter }
[]
occupation
SYSTEM
NO and YES respectively
(Q7611784,P106,Q19810880) (Q7611784,P106,Q1028181)
action is_in
entity Q7611784
action intersection
action find_reverse
entity Q19810880
relation P106
action find_reverse
entity Q1028181
relation P106
[ANSWER]
['Q7611784', 'P106', 'Q19810880'] ['Q7611784', 'P106', 'Q1028181']
ASK WHERE { resource:Q7611784 property:P106 resource:Q19810880 . resource:Q7611784 property:P106 resource:Q1028181 }
NO and YES respectively
action is_in
entity Steve Allrich
action intersection
action find_reverse
entity Crown crown prince
relation occupation
action find_reverse
entity painter
relation occupation
['Steve Allrich', 'occupation', 'Crown crown prince'] ['Steve Allrich', 'occupation', 'painter']
ASK WHERE { resource:Steve_Allrich property:occupation resource:Crown_crown_prince . resource:Steve_Allrich property:occupation resource:painter }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories holds diplomatic relationship with around 25 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 25
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?b ) AS ?g ) WHERE { ?r property:P530 ?b . ?r rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } GROUP BY ?r } . FILTER ( ?g = 25 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 25
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?b ) AS ?g ) WHERE { ?r property:diplomatic_relation ?b . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . FILTER ( ?g = 25 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q30 Q159 Q142
SYSTEM
United States of America, Russia, France
Q801 Q142 Q159 Q30
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 25
[ANSWERS] hold diplomatic relationship with around 25 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?b ) AS ?g ) WHERE { ?r property:P530 ?b . ?r rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 } GROUP BY ?r } . FILTER ( ?g = 25 ) }
Israel France Russia United States of America
United States of America, Russia and France hold diplomatic relationship with around 25 administrative territories
United States of America Russia France
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 25
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?b ) AS ?g ) WHERE { ?r property:diplomatic_relation ?b . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . FILTER ( ?g = 25 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7611784
P21
Q290
USER
What is the sex of Steve Allrich ?
(Q7611784,P21,c(Q290))
action filter_type
action find
entity Q7611784
relation P21
type Q290
['Q7611784', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q290 . resource:Q7611784 property:P21 ?e }
Steve Allrich
action filter_type
action find
entity Steve Allrich
relation gender
type sex
['Steve Allrich', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:sex . resource:Steve_Allrich property:gender ?e }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7611784,P21,c(Q290))
action filter_type
action find
entity Q7611784
relation P21
type Q290
The sex of Steve Allrich is the [ANSWER]
['Q7611784', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q290 . resource:Q7611784 property:P21 ?e }
male
The sex of Steve Allrich is the male
male
action filter_type
action find
entity Steve Allrich
relation gender
type sex
['Steve Allrich', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:sex . resource:Steve_Allrich property:gender ?e }
[]