Simple Question (Direct)
Simple Question
Q4356275
P21
Q290
USER
What is the sex of Dick Modzelewski ?
(Q4356275,P21,c(Q290))
action filter_type
action find
entity Q4356275
relation P21
type Q290
['Q4356275', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q4356275 property:P21 ?v . ?v rdf:type ontology:Q290 }
Dick Modzelewski
action filter_type
action find
entity Dick Modzelewski
relation gender
type sex
['Dick Modzelewski', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Dick_Modzelewski property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4356275,P21,c(Q290))
action filter_type
action find
entity Q4356275
relation P21
type Q290
The sex of Dick Modzelewski is the [ANSWER]
['Q4356275', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q4356275 property:P21 ?v . ?v rdf:type ontology:Q290 }
male
The sex of Dick Modzelewski is the male
male
action filter_type
action find
entity Dick Modzelewski
relation gender
type sex
['Dick Modzelewski', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Dick_Modzelewski property:gender ?v . ?v rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4356275
P106
Q12737077
USER
Which occupation has that person as his/her 's career ?
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q4356275
relation P106
type Q12737077
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q4356275 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Dick Modzelewski
action filter_type
action find
entity Dick Modzelewski
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Dick_Modzelewski property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q19204627
SYSTEM
American football player
Q19204627
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q4356275
relation P106
type Q12737077
An [ANSWER] has that person as his/her 's career
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q4356275 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
American football player
An American football player has that person as his/her 's career
American football player
action filter_type
action find
entity Dick Modzelewski
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Dick_Modzelewski property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4356275
P27
Q15617994
USER
Which administrative territory is Dick Modzelewski a civilian of ?
(Q4356275,P27,c(Q15617994))
action filter_type
action find
entity Q4356275
relation P27
type Q15617994
['Q4356275', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q4356275 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Dick Modzelewski
action filter_type
action find
entity Dick Modzelewski
relation country of citizenship
type designation for an administrative territorial entity
['Dick Modzelewski', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Dick_Modzelewski property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q4356275,P27,c(Q15617994))
action filter_type
action find
entity Q4356275
relation P27
type Q15617994
The [ANSWER] is Dick Modzelewski a civilian of
['Q4356275', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q4356275 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
United States of America
The United States of America is Dick Modzelewski a civilian of
United States of America
action filter_type
action find
entity Dick Modzelewski
relation country of citizenship
type designation for an administrative territorial entity
['Dick Modzelewski', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Dick_Modzelewski property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q30 Q19560522
P27
Q502895
USER
Is William Funnell a civilian of that administrative territory ?
(Q19560522,P27,Q30)
action is_in
entity Q19560522
action find
entity Q30
relation P27
['Q19560522', 'P27', 'Q30']
ASK WHERE { resource:Q30 property:P27 resource:Q19560522 }
United States of America William Funnell
action is_in
entity William Funnell
action find
entity United States of America
relation country of citizenship
['William Funnell', 'country of citizenship', 'United States of America']
ASK WHERE { resource:United_States_of_America property:country_of_citizenship resource:William_Funnell }
[]
common name
SYSTEM
NO
(Q19560522,P27,Q30)
action is_in
entity Q19560522
action find
entity Q30
relation P27
[ANSWER]
['Q19560522', 'P27', 'Q30']
ASK WHERE { resource:Q30 property:P27 resource:Q19560522 }
No
action is_in
entity William Funnell
action find
entity United States of America
relation country of citizenship
['William Funnell', 'country of citizenship', 'United States of America']
ASK WHERE { resource:United_States_of_America property:country_of_citizenship resource:William_Funnell }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q502895 Q1445650 Q15617994
USER
Which administrative territories have approximately 4 people and holidays as their patron saint ?
(c(Q15617994),P417,c(Q502895)|c(Q1445650))
action approx
action union
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
value 4
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) ?p WHERE { { ?p property:P417 ?q . ?p rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q502895 } UNION { ?p property:P417 ?q . ?p rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1445650 } } GROUP BY ?p } . FILTER ( ?g = 4 ) }
action approx
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) ?p WHERE { { ?p property:patron_saint ?q . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:common_name } UNION { ?p property:patron_saint ?q . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:holiday } } GROUP BY ?p } . FILTER ( ?g = 4 ) }
[]
common name holiday designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(c(Q15617994),P417,c(Q502895)|c(Q1445650))
action approx
action union
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
value 4
[ANSWER] have approximately 4 people and holidays as their patron saint
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) ?p WHERE { { ?p property:P417 ?q . ?p rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q502895 } UNION { ?p property:P417 ?q . ?p rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1445650 } } GROUP BY ?p } . FILTER ( ?g = 4 ) }
Poland
Poland have approximately 4 people and holidays as their patron saint
Poland
action approx
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) ?p WHERE { { ?p property:patron_saint ?q . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:common_name } UNION { ?p property:patron_saint ?q . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:holiday } } GROUP BY ?p } . FILTER ( ?g = 4 ) }
[]