Simple Question (Direct)
Simple Question
Q21822504
P57
Q502895
USER
Who was the director of Billionaire Boys Club ?
(Q21822504,P57,c(Q502895))
action filter_type
action find
entity Q21822504
relation P57
type Q502895
['Q21822504', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q21822504 property:P57 ?g }
Billionaire Boys Club
action filter_type
action find
entity Billionaire Boys Club
relation director
type common name
['Billionaire Boys Club', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Billionaire_Boys_Club property:director ?g }
[]
common name
Q1680208
SYSTEM
James Cox
Q1680208
(Q21822504,P57,c(Q502895))
action filter_type
action find
entity Q21822504
relation P57
type Q502895
The director of Billionaire Boys Club was Sir [ANSWER]
['Q21822504', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q21822504 property:P57 ?g }
James Cox
The director of Billionaire Boys Club was Sir James Cox
James Cox
action filter_type
action find
entity Billionaire Boys Club
relation director
type common name
['Billionaire Boys Club', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Billionaire_Boys_Club property:director ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21822504
P495
Q15617994
USER
Which administrative territory is the origin of Billionaire Boys Club ?
(Q21822504,P495,c(Q15617994))
action filter_type
action find
entity Q21822504
relation P495
type Q15617994
['Q21822504', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q21822504 property:P495 ?i . ?i rdf:type ontology:Q15617994 }
Billionaire Boys Club
action filter_type
action find
entity Billionaire Boys Club
relation country of origin
type designation for an administrative territorial entity
['Billionaire Boys Club', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Billionaire_Boys_Club property:country_of_origin ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q21822504,P495,c(Q15617994))
action filter_type
action find
entity Q21822504
relation P495
type Q15617994
[ANSWER] is the origin of Billionaire Boys Club
['Q21822504', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q21822504 property:P495 ?i . ?i rdf:type ontology:Q15617994 }
United States of America
United States of America is the origin of Billionaire Boys Club
United States of America
action filter_type
action find
entity Billionaire Boys Club
relation country of origin
type designation for an administrative territorial entity
['Billionaire Boys Club', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Billionaire_Boys_Club property:country_of_origin ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P38
Q8142
USER
What is considered to be the currency of that administrative territory ?
(Q30,P38,c(Q8142))
action filter_type
action find
entity Q30
relation P38
type Q8142
['Q30', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?j WHERE { resource:Q30 property:P38 ?j . ?j rdf:type ontology:Q8142 }
United States of America
action filter_type
action find
entity United States of America
relation currency
type currency
['United States of America', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?j WHERE { resource:United_States_of_America property:currency ?j . ?j rdf:type ontology:currency }
[]
currency
Q4917
SYSTEM
United States dollar
Q4917
(Q30,P38,c(Q8142))
action filter_type
action find
entity Q30
relation P38
type Q8142
[ANSWER] is considered to be the currency of that administrative territory
['Q30', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?j WHERE { resource:Q30 property:P38 ?j . ?j rdf:type ontology:Q8142 }
United States dollar
United States dollar is considered to be the currency of that administrative territory
United States dollar
action filter_type
action find
entity United States of America
relation currency
type currency
['United States of America', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?j WHERE { resource:United_States_of_America property:currency ?j . ?j rdf:type ontology:currency }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q809806
Q8142
USER
And also tell me about Bashkir Autonomous Soviet Socialist Republic?
(Q809806,P38,c(Q8142))
action filter_type
action find
entity Q809806
relation P38
type Q8142
['Q809806', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?b WHERE { resource:Q809806 property:P38 ?b . ?b rdf:type ontology:Q8142 }
Bashkir Autonomous Soviet Socialist Republic
action filter_type
action find
entity Bashkir Autonomous Soviet Socialist Republic
relation currency
type currency
['Bashkir Autonomous Soviet Socialist Republic', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?b WHERE { resource:Bashkir_Autonomous_Soviet_Socialist_Republic property:currency ?b . ?b rdf:type ontology:currency }
[]
currency
Q615640
SYSTEM
Soviet ruble
Q615640
(Q809806,P38,c(Q8142))
action filter_type
action find
entity Q809806
relation P38
type Q8142
[ANSWER]
['Q809806', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?b WHERE { resource:Q809806 property:P38 ?b . ?b rdf:type ontology:Q8142 }
Soviet ruble
Soviet ruble
action filter_type
action find
entity Bashkir Autonomous Soviet Socialist Republic
relation currency
type currency
['Bashkir Autonomous Soviet Socialist Republic', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?b WHERE { resource:Bashkir_Autonomous_Soviet_Socialist_Republic property:currency ?b . ?b rdf:type ontology:currency }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have a diplomatic relationship with max number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?v ) { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?t ) WHERE { ?d property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } GROUP BY ?d } } . FILTER ( ?g = ?v ) . { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?g ) WHERE { ?r property:P530 ?u . ?r rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 } GROUP BY ?r } }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?v ) { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?t ) WHERE { ?d property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } } . FILTER ( ?g = ?v ) . { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?g ) WHERE { ?r property:diplomatic_relation ?u . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] have a diplomatic relationship with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?v ) { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?t ) WHERE { ?d property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } GROUP BY ?d } } . FILTER ( ?g = ?v ) . { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?g ) WHERE { ?r property:P530 ?u . ?r rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 } GROUP BY ?r } }
Italy
Italy have a diplomatic relationship with max number of administrative territories
Italy
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?v ) { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?t ) WHERE { ?d property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } } . FILTER ( ?g = ?v ) . { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?g ) WHERE { ?r property:diplomatic_relation ?u . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21642444 Q1680208
P27
Q15617994
USER
Which administrative territories do James Cox or Tamar Eisenman belong to ?
OR((Q1680208,P27,c(Q15617994)), (Q21642444,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1680208
relation P27
action find
entity Q21642444
relation P27
type Q15617994
{'OR': [['Q1680208', 'P27', {'concept': 'Q15617994'}], ['Q21642444', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q1680208 property:P27 ?l } UNION { resource:Q21642444 property:P27 ?l } } . ?l rdf:type ontology:Q15617994 }
Tamar Eisenman James Cox
action filter_type
action union
action find
entity James Cox
relation country of citizenship
action find
entity Tamar Eisenman
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['James Cox', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Tamar Eisenman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:James_Cox property:country_of_citizenship ?l } UNION { resource:Tamar_Eisenman property:country_of_citizenship ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q801
SYSTEM
United States of America, Israel
Q30 Q801
OR((Q1680208,P27,c(Q15617994)), (Q21642444,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1680208
relation P27
action find
entity Q21642444
relation P27
type Q15617994
James Cox or Tamar Eisenman belong to the [ANSWERS]
{'OR': [['Q1680208', 'P27', {'concept': 'Q15617994'}], ['Q21642444', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q1680208 property:P27 ?l } UNION { resource:Q21642444 property:P27 ?l } } . ?l rdf:type ontology:Q15617994 }
United States of America Israel
James Cox or Tamar Eisenman belong to the United States of America and Israel
United States of America Israel
action filter_type
action union
action find
entity James Cox
relation country of citizenship
action find
entity Tamar Eisenman
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['James Cox', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Tamar Eisenman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:James_Cox property:country_of_citizenship ?l } UNION { resource:Tamar_Eisenman property:country_of_citizenship ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q731076
P27
Q502895
USER
Are David Broza a citizen of those administrative territories ?
(Q731076,P27,Q30) (Q731076,P27,Q801)
action is_in
entity prev_answer
action find
entity Q731076
relation P27
['Q731076', 'P27', 'Q30'] ['Q731076', 'P27', 'Q801']
ASK WHERE { VALUES ( ?p ) { ( resource:Q30 ) ( resource:Q801 ) } . resource:Q731076 property:P27 ?p }
David Broza
action is_in
entity prev_answer
action find
entity David Broza
relation country of citizenship
['David Broza', 'country of citizenship', 'United States of America'] ['David Broza', 'country of citizenship', 'Israel']
ASK WHERE { VALUES ( ?p ) { ( resource:United_States_of_America ) ( resource:Israel ) } . resource:David_Broza property:country_of_citizenship ?p }
[]
common name
SYSTEM
YES
(Q731076,P27,Q30) (Q731076,P27,Q801)
action is_in
entity prev_answer
action find
entity Q731076
relation P27
[ANSWER]
['Q731076', 'P27', 'Q30'] ['Q731076', 'P27', 'Q801']
ASK WHERE { VALUES ( ?p ) { ( resource:Q30 ) ( resource:Q801 ) } . resource:Q731076 property:P27 ?p }
Yes
action is_in
entity prev_answer
action find
entity David Broza
relation country of citizenship
['David Broza', 'country of citizenship', 'United States of America'] ['David Broza', 'country of citizenship', 'Israel']
ASK WHERE { VALUES ( ?p ) { ( resource:United_States_of_America ) ( resource:Israel ) } . resource:David_Broza property:country_of_citizenship ?p }
[]