Simple Question (Direct)
Simple Question
Q1164065
P734
Q82799
USER
Which name is associated with Danilo Bach ?
(Q1164065,P734,c(Q82799))
action filter_type
action find
entity Q1164065
relation P734
type Q82799
['Q1164065', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q1164065 property:P734 ?j . ?j rdf:type ontology:Q82799 }
Danilo Bach
action filter_type
action find
entity Danilo Bach
relation family name
type name
['Danilo Bach', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Danilo_Bach property:family_name ?j . ?j rdf:type ontology:name }
[]
name
Q1409748
SYSTEM
Bach
Q1409748
(Q1164065,P734,c(Q82799))
action filter_type
action find
entity Q1164065
relation P734
type Q82799
In [ANSWER] is associated with Danilo [ANSWER]
['Q1164065', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q1164065 property:P734 ?j . ?j rdf:type ontology:Q82799 }
Bach
In Bach is associated with Danilo Bach
Bach
action filter_type
action find
entity Danilo Bach
relation family name
type name
['Danilo Bach', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Danilo_Bach property:family_name ?j . ?j rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1164065
P21
Q290
USER
What is the sex of Danilo Bach ?
(Q1164065,P21,c(Q290))
action filter_type
action find
entity Q1164065
relation P21
type Q290
['Q1164065', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q1164065 property:P21 ?i . ?i rdf:type ontology:Q290 }
Danilo Bach
action filter_type
action find
entity Danilo Bach
relation gender
type sex
['Danilo Bach', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Danilo_Bach property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1164065,P21,c(Q290))
action filter_type
action find
entity Q1164065
relation P21
type Q290
The sex of Danilo Bach is the [ANSWER]
['Q1164065', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q1164065 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
The sex of Danilo Bach is the male
male
action filter_type
action find
entity Danilo Bach
relation gender
type sex
['Danilo Bach', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Danilo_Bach property:gender ?i . ?i rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1164065
P58
Q15416 Q838948
USER
How many television programs or works of art are Danilo Bach a screenwriter of ?
(c(Q15416),P58,Q1164065) (c(Q838948),P58,Q1164065)
action count
action union
action filter_type
action find_reverse
entity Q1164065
relation P58
type Q15416
action filter_type
action find_reverse
entity Q1164065
relation P58
type Q838948
[{'concept': 'Q15416'}, 'P58', 'Q1164065'] [{'concept': 'Q838948'}, 'P58', 'Q1164065']
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { { ?t rdf:type ontology:Q15416 . ?t property:P58 resource:Q1164065 } UNION { ?t property:P58 resource:Q1164065 . ?t rdf:type ontology:Q838948 } }
Danilo Bach
action count
action union
action filter_type
action find_reverse
entity Danilo Bach
relation screenwriter
type television program
action filter_type
action find_reverse
entity Danilo Bach
relation screenwriter
type work of art
[{'concept': 'television program'}, 'screenwriter', 'Danilo Bach'] [{'concept': 'work of art'}, 'screenwriter', 'Danilo Bach']
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { { ?t rdf:type ontology:television_program . ?t property:screenwriter resource:Danilo_Bach } UNION { ?t property:screenwriter resource:Danilo_Bach . ?t rdf:type ontology:work_of_art } }
[]
television program work of art
SYSTEM
4
Q722267 Q692275 Q191001 Q1366801
(c(Q15416),P58,Q1164065) (c(Q838948),P58,Q1164065)
action count
action union
action filter_type
action find_reverse
entity Q1164065
relation P58
type Q15416
action filter_type
action find_reverse
entity Q1164065
relation P58
type Q838948
[ANSWER]
[{'concept': 'Q15416'}, 'P58', 'Q1164065'] [{'concept': 'Q838948'}, 'P58', 'Q1164065']
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { { ?t rdf:type ontology:Q15416 . ?t property:P58 resource:Q1164065 } UNION { ?t property:P58 resource:Q1164065 . ?t rdf:type ontology:Q838948 } }
Beverly Hills Cop April Fool's Day 14 Hours Escape Clause
4
action count
action union
action filter_type
action find_reverse
entity Danilo Bach
relation screenwriter
type television program
action filter_type
action find_reverse
entity Danilo Bach
relation screenwriter
type work of art
[{'concept': 'television program'}, 'screenwriter', 'Danilo Bach'] [{'concept': 'work of art'}, 'screenwriter', 'Danilo Bach']
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { { ?t rdf:type ontology:television_program . ?t property:screenwriter resource:Danilo_Bach } UNION { ?t property:screenwriter resource:Danilo_Bach . ?t rdf:type ontology:work_of_art } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1164065
P19
Q15617994
USER
How many administrative territories were Danilo Bach born at ?
(Q1164065,P19,c(Q15617994))
action count
action filter_type
action find
entity Q1164065
relation P19
type Q15617994
['Q1164065', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:Q1164065 property:P19 ?c . ?c rdf:type ontology:Q15617994 }
Danilo Bach
action count
action filter_type
action find
entity Danilo Bach
relation place of birth
type designation for an administrative territorial entity
['Danilo Bach', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:Danilo_Bach property:place_of_birth ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q30
(Q1164065,P19,c(Q15617994))
action count
action filter_type
action find
entity Q1164065
relation P19
type Q15617994
[ANSWER]
['Q1164065', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:Q1164065 property:P19 ?c . ?c rdf:type ontology:Q15617994 }
United States of America
1
action count
action filter_type
action find
entity Danilo Bach
relation place of birth
type designation for an administrative territorial entity
['Danilo Bach', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:Danilo_Bach property:place_of_birth ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q4773413
Q15617994
USER
And how about Anthony Sadowski?
(Q4773413,P19,c(Q15617994))
action count
action filter_type
action find
entity Q4773413
relation P19
type Q15617994
['Q4773413', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { ?p rdf:type ontology:Q15617994 . resource:Q4773413 property:P19 ?p }
Anthony Sadowski
action count
action filter_type
action find
entity Anthony Sadowski
relation place of birth
type designation for an administrative territorial entity
['Anthony Sadowski', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Anthony_Sadowski property:place_of_birth ?p }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q4773413,P19,c(Q15617994))
action count
action filter_type
action find
entity Q4773413
relation P19
type Q15617994
[ANSWER]
['Q4773413', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { ?p rdf:type ontology:Q15617994 . resource:Q4773413 property:P19 ?p }
1
action count
action filter_type
action find
entity Anthony Sadowski
relation place of birth
type designation for an administrative territorial entity
['Anthony Sadowski', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Anthony_Sadowski property:place_of_birth ?p }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16194718 Q1164065
P27
Q15617994
USER
Which administrative territories are Danilo Bach or Abdul Rasheed Na'Allah a civilian of ?
OR((Q1164065,P27,c(Q15617994)), (Q16194718,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1164065
relation P27
action find
entity Q16194718
relation P27
type Q15617994
{'OR': [['Q1164065', 'P27', {'concept': 'Q15617994'}], ['Q16194718', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q16194718 property:P27 ?j } UNION { resource:Q1164065 property:P27 ?j } } . ?j rdf:type ontology:Q15617994 }
Abdul Rasheed Na'Allah Danilo Bach
action filter_type
action union
action find
entity Danilo Bach
relation country of citizenship
action find
entity Abdul Rasheed Na'Allah
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Danilo Bach', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ["Abdul Rasheed Na'Allah", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Abdul_Rasheed_Na'Allah property:country_of_citizenship ?j } UNION { resource:Danilo_Bach property:country_of_citizenship ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q1033
SYSTEM
United States of America, Nigeria
Q30 Q1033
OR((Q1164065,P27,c(Q15617994)), (Q16194718,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1164065
relation P27
action find
entity Q16194718
relation P27
type Q15617994
[ANSWERS] are Danilo Bach or Abdul Rasheed Na'Allah a civilian of
{'OR': [['Q1164065', 'P27', {'concept': 'Q15617994'}], ['Q16194718', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q16194718 property:P27 ?j } UNION { resource:Q1164065 property:P27 ?j } } . ?j rdf:type ontology:Q15617994 }
United States of America Nigeria
United States of America and Nigeria are Danilo Bach or Abdul Rasheed Na'Allah a civilian of
United States of America Nigeria
action filter_type
action union
action find
entity Danilo Bach
relation country of citizenship
action find
entity Abdul Rasheed Na'Allah
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Danilo Bach', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ["Abdul Rasheed Na'Allah", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Abdul_Rasheed_Na'Allah property:country_of_citizenship ?j } UNION { resource:Danilo_Bach property:country_of_citizenship ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q19885291
P27
Q502895
USER
Are Opal Tometi a citizen of those administrative territories ?
(Q19885291,P27,Q30) (Q19885291,P27,Q1033)
action is_in
entity prev_answer
action find
entity Q19885291
relation P27
['Q19885291', 'P27', 'Q30'] ['Q19885291', 'P27', 'Q1033']
ASK WHERE { resource:Q19885291 property:P27 ?z . VALUES ( ?z ) { ( resource:Q30 ) ( resource:Q1033 ) } }
Opal Tometi
action is_in
entity prev_answer
action find
entity Opal Tometi
relation country of citizenship
['Opal Tometi', 'country of citizenship', 'United States of America'] ['Opal Tometi', 'country of citizenship', 'Nigeria']
ASK WHERE { resource:Opal_Tometi property:country_of_citizenship ?z . VALUES ( ?z ) { ( resource:United_States_of_America ) ( resource:Nigeria ) } }
[]
common name
SYSTEM
YES
(Q19885291,P27,Q30) (Q19885291,P27,Q1033)
action is_in
entity prev_answer
action find
entity Q19885291
relation P27
[ANSWER]
['Q19885291', 'P27', 'Q30'] ['Q19885291', 'P27', 'Q1033']
ASK WHERE { resource:Q19885291 property:P27 ?z . VALUES ( ?z ) { ( resource:Q30 ) ( resource:Q1033 ) } }
Yes
action is_in
entity prev_answer
action find
entity Opal Tometi
relation country of citizenship
['Opal Tometi', 'country of citizenship', 'United States of America'] ['Opal Tometi', 'country of citizenship', 'Nigeria']
ASK WHERE { resource:Opal_Tometi property:country_of_citizenship ?z . VALUES ( ?z ) { ( resource:United_States_of_America ) ( resource:Nigeria ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q30 Q155 Q5148370
P530
Q15617994
USER
Does United States of America have tactful political relations with Brazil and Colonial School District ?
(Q30,P530,Q155) (Q30,P530,Q5148370)
action is_in
entity Q30
action intersection
action find_reverse
entity Q155
relation P530
action find_reverse
entity Q5148370
relation P530
['Q30', 'P530', 'Q155'] ['Q30', 'P530', 'Q5148370']
ASK WHERE { resource:Q30 property:P530 resource:Q155 . resource:Q30 property:P530 resource:Q5148370 }
United States of America Brazil Colonial School District
action is_in
entity United States of America
action intersection
action find_reverse
entity Brazil
relation diplomatic relation
action find_reverse
entity Colonial School District
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Brazil'] ['United States of America', 'diplomatic relation', 'Colonial School District']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Brazil . resource:United_States_of_America property:diplomatic_relation resource:Colonial_School_District }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q30,P530,Q155) (Q30,P530,Q5148370)
action is_in
entity Q30
action intersection
action find_reverse
entity Q155
relation P530
action find_reverse
entity Q5148370
relation P530
[ANSWER]
['Q30', 'P530', 'Q155'] ['Q30', 'P530', 'Q5148370']
ASK WHERE { resource:Q30 property:P530 resource:Q155 . resource:Q30 property:P530 resource:Q5148370 }
YES and NO respectively
action is_in
entity United States of America
action intersection
action find_reverse
entity Brazil
relation diplomatic relation
action find_reverse
entity Colonial School District
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Brazil'] ['United States of America', 'diplomatic relation', 'Colonial School District']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Brazil . resource:United_States_of_America property:diplomatic_relation resource:Colonial_School_District }
[]