Simple Question (Direct)
Simple Question
Q20003656
P509
Q2057971
USER
What was the cause of death of John Barnes Wells ?
(Q20003656,P509,c(Q2057971))
action filter_type
action find
entity Q20003656
relation P509
type Q2057971
['Q20003656', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?j WHERE { resource:Q20003656 property:P509 ?j . ?j rdf:type ontology:Q2057971 }
John Barnes Wells
action filter_type
action find
entity John Barnes Wells
relation cause of death
type health problem
['John Barnes Wells', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?j WHERE { resource:John_Barnes_Wells property:cause_of_death ?j . ?j rdf:type ontology:health_problem }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
(Q20003656,P509,c(Q2057971))
action filter_type
action find
entity Q20003656
relation P509
type Q2057971
The cause of death of John Barnes Wells was a [ANSWER]
['Q20003656', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?j WHERE { resource:Q20003656 property:P509 ?j . ?j rdf:type ontology:Q2057971 }
myocardial infarction
The cause of death of John Barnes Wells was a myocardial infarction
myocardial infarction
action filter_type
action find
entity John Barnes Wells
relation cause of death
type health problem
['John Barnes Wells', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?j WHERE { resource:John_Barnes_Wells property:cause_of_death ?j . ?j rdf:type ontology:health_problem }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20003656
P27
Q15617994
USER
Which administrative territory is John Barnes Wells a civilian of ?
(Q20003656,P27,c(Q15617994))
action filter_type
action find
entity Q20003656
relation P27
type Q15617994
['Q20003656', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q20003656 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
John Barnes Wells
action filter_type
action find
entity John Barnes Wells
relation country of citizenship
type designation for an administrative territorial entity
['John Barnes Wells', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:John_Barnes_Wells property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q20003656,P27,c(Q15617994))
action filter_type
action find
entity Q20003656
relation P27
type Q15617994
The [ANSWER] is John Barnes Wells a civilian of
['Q20003656', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q20003656 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
United States of America
The United States of America is John Barnes Wells a civilian of
United States of America
action filter_type
action find
entity John Barnes Wells
relation country of citizenship
type designation for an administrative territorial entity
['John Barnes Wells', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:John_Barnes_Wells property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q19768344
Q15617994
USER
And how about Joshua Ballinger Lippincott?
(Q19768344,P27,c(Q15617994))
action filter_type
action find
entity Q19768344
relation P27
type Q15617994
['Q19768344', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q19768344 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Joshua Ballinger Lippincott
action filter_type
action find
entity Joshua Ballinger Lippincott
relation country of citizenship
type designation for an administrative territorial entity
['Joshua Ballinger Lippincott', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Joshua_Ballinger_Lippincott property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q19768344,P27,c(Q15617994))
action filter_type
action find
entity Q19768344
relation P27
type Q15617994
[ANSWER]
['Q19768344', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q19768344 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity Joshua Ballinger Lippincott
relation country of citizenship
type designation for an administrative territorial entity
['Joshua Ballinger Lippincott', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Joshua_Ballinger_Lippincott property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with max number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?h ) { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?n ) WHERE { ?e property:P530 ?k . ?e rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?e } } . { SELECT DISTINCT ?o ( COUNT ( ?t ) AS ?m ) WHERE { ?o property:P530 ?t . ?o rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?o } . FILTER ( ?m = ?h ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?h ) { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?n ) WHERE { ?e property:diplomatic_relation ?k . ?e rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } } . { SELECT DISTINCT ?o ( COUNT ( ?t ) AS ?m ) WHERE { ?o property:diplomatic_relation ?t . ?o rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . FILTER ( ?m = ?h ) }
[]
political territorial entity designation for an administrative territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] holds diplomatic relationship with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?h ) { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?n ) WHERE { ?e property:P530 ?k . ?e rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?e } } . { SELECT DISTINCT ?o ( COUNT ( ?t ) AS ?m ) WHERE { ?o property:P530 ?t . ?o rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?o } . FILTER ( ?m = ?h ) }
Germany
Germany holds diplomatic relationship with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?h ) { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?n ) WHERE { ?e property:diplomatic_relation ?k . ?e rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } } . { SELECT DISTINCT ?o ( COUNT ( ?t ) AS ?m ) WHERE { ?o property:diplomatic_relation ?t . ?o rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . FILTER ( ?m = ?h ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P85
Q7725634
USER
What is the anthem for that political territory ?
(Q183,P85,c(Q7725634))
action filter_type
action find
entity Q183
relation P85
type Q7725634
['Q183', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?u WHERE { resource:Q183 property:P85 ?u . ?u rdf:type ontology:Q7725634 }
Germany
action filter_type
action find
entity Germany
relation anthem
type literary work
['Germany', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?u WHERE { resource:Germany property:anthem ?u . ?u rdf:type ontology:literary_work }
[]
literary work
Q44042
SYSTEM
Das Lied der Deutschen
Q44042
(Q183,P85,c(Q7725634))
action filter_type
action find
entity Q183
relation P85
type Q7725634
The anthem for that political territory is [ANSWER]
['Q183', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?u WHERE { resource:Q183 property:P85 ?u . ?u rdf:type ontology:Q7725634 }
Das Lied der Deutschen
The anthem for that political territory is Das Lied der Deutschen
Das Lied der Deutschen
action filter_type
action find
entity Germany
relation anthem
type literary work
['Germany', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?u WHERE { resource:Germany property:anthem ?u . ?u rdf:type ontology:literary_work }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q21
Q7725634
USER
And also tell me about England?
(Q21,P85,c(Q7725634))
action filter_type
action find
entity Q21
relation P85
type Q7725634
['Q21', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q7725634 . resource:Q21 property:P85 ?b }
England
action filter_type
action find
entity England
relation anthem
type literary work
['England', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:literary_work . resource:England property:anthem ?b }
[]
literary work
Q40807
SYSTEM
God Save the Queen
Q40807
(Q21,P85,c(Q7725634))
action filter_type
action find
entity Q21
relation P85
type Q7725634
[ANSWER]
['Q21', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q7725634 . resource:Q21 property:P85 ?b }
God Save the Queen
God Save the Queen
action filter_type
action find
entity England
relation anthem
type literary work
['England', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:literary_work . resource:England property:anthem ?b }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q384426
P1445
Q7725634 Q386724
USER
Which works were described in lesser number of literary works than Pirates of the Caribbean ?
(c(Q386724),P1445,c(Q7725634))
action less
action find_tuple_counts
relation P1445
type Q386724
type Q7725634
action count
action filter_type
action find
entity Q384426
relation P1445
type Q7725634
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q7725634'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?q ) WHERE { ?a property:P1445 ?s . ?a rdf:type ontology:Q386724 . ?s rdf:type ontology:Q7725634 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { resource:Q384426 property:P1445 ?k . ?k rdf:type ontology:Q7725634 } } . FILTER ( ?q < ?u ) }
Pirates of the Caribbean
action less
action find_tuple_counts
relation fictional universe described in
type work
type literary work
action count
action filter_type
action find
entity Pirates of the Caribbean
relation fictional universe described in
type literary work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'literary work'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?q ) WHERE { ?a property:fictional_universe_described_in ?s . ?a rdf:type ontology:work . ?s rdf:type ontology:literary_work } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { resource:Pirates_of_the_Caribbean property:fictional_universe_described_in ?k . ?k rdf:type ontology:literary_work } } . FILTER ( ?q < ?u ) }
[]
literary work work
Q1203222 Q15731902 Q11927
SYSTEM
Shrek, Aladdin media franchise, Stargate
Q1203222 Q15731902 Q11927 Q3177580
(c(Q386724),P1445,c(Q7725634))
action less
action find_tuple_counts
relation P1445
type Q386724
type Q7725634
action count
action filter_type
action find
entity Q384426
relation P1445
type Q7725634
[ANSWERS] were described in lesser number of literary works than Pirates of the Caribbean
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q7725634'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?q ) WHERE { ?a property:P1445 ?s . ?a rdf:type ontology:Q386724 . ?s rdf:type ontology:Q7725634 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { resource:Q384426 property:P1445 ?k . ?k rdf:type ontology:Q7725634 } } . FILTER ( ?q < ?u ) }
Shrek Aladdin media franchise Stargate The Walking Dead
Shrek, Aladdin media franchise and Stargate were described in lesser number of literary works than Pirates of the Caribbean
Shrek Aladdin media franchise Stargate
action less
action find_tuple_counts
relation fictional universe described in
type work
type literary work
action count
action filter_type
action find
entity Pirates of the Caribbean
relation fictional universe described in
type literary work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'literary work'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?q ) WHERE { ?a property:fictional_universe_described_in ?s . ?a rdf:type ontology:work . ?s rdf:type ontology:literary_work } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { resource:Pirates_of_the_Caribbean property:fictional_universe_described_in ?k . ?k rdf:type ontology:literary_work } } . FILTER ( ?q < ?u ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q11927
P1445
Q15416
USER
Which television program sketches the fictional universe of that work ?
(Q11927,P1445,c(Q15416))
action filter_type
action find
entity Q11927
relation P1445
type Q15416
['Q11927', 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ?k WHERE { resource:Q11927 property:P1445 ?k . ?k rdf:type ontology:Q15416 }
Stargate
action filter_type
action find
entity Stargate
relation fictional universe described in
type television program
['Stargate', 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ?k WHERE { resource:Stargate property:fictional_universe_described_in ?k . ?k rdf:type ontology:television_program }
[]
television program
Clarification for simple ques.
Q15731902
SYSTEM
Did you mean Aladdin media franchise ?
Q1203222 Q15731902 Q11927
(Q1203222,P1445,c(Q15416)) (Q15731902,P1445,c(Q15416)) (Q11927,P1445,c(Q15416))
[ANSWER]
['Q1203222', 'P1445', {'concept': 'Q15416'}] ['Q15731902', 'P1445', {'concept': 'Q15416'}] ['Q11927', 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ?k WHERE { resource:Q11927 property:P1445 ?k . ?k rdf:type ontology:Q15416 }
Shrek Aladdin media franchise Stargate
Did you mean Aladdin media franchise ?
Aladdin media franchise
['Shrek', 'fictional universe described in', {'concept': 'television program'}] ['Aladdin media franchise', 'fictional universe described in', {'concept': 'television program'}] ['Stargate', 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ?k WHERE { resource:Stargate property:fictional_universe_described_in ?k . ?k rdf:type ontology:television_program }
[]
Simple Question (Coreferenced)
USER
No, I meant Stargate. Could you tell me the answer for that?
(Q11927,P1445,c(Q15416))
Q11927
['Q11927', 'P1445', {'concept': 'Q15416'}]
['Stargate', 'fictional universe described in', {'concept': 'television program'}]
[]
Q837622
SYSTEM
Stargate Infinity
Q837622
(Q11927,P1445,c(Q15416))
action filter_type
action find
entity Q11927
relation P1445
type Q15416
[ANSWER] sketches the fictional universe of that work
['Q11927', 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ?k WHERE { resource:Q11927 property:P1445 ?k . ?k rdf:type ontology:Q15416 }
Stargate Infinity
Stargate Infinity sketches the fictional universe of that work
Stargate Infinity
action filter_type
action find
entity Stargate
relation fictional universe described in
type television program
['Stargate', 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ?k WHERE { resource:Stargate property:fictional_universe_described_in ?k . ?k rdf:type ontology:television_program }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q837622 Q1449760 Q7327208
P161
Q502895
USER
Does Franz Xaver Zacherl and Richard L. Stevens star in Q837622 ?
(Q837622,P161,Q1449760) (Q837622,P161,Q7327208)
action is_in
entity Q837622
action intersection
action find_reverse
entity Q1449760
relation P161
action find_reverse
entity Q7327208
relation P161
['Q837622', 'P161', 'Q1449760'] ['Q837622', 'P161', 'Q7327208']
ASK WHERE { resource:Q837622 property:P161 resource:Q1449760 . resource:Q837622 property:P161 resource:Q7327208 }
Stargate Infinity Franz Xaver Zacherl Richard L. Stevens
action is_in
entity Stargate Infinity
action intersection
action find_reverse
entity Franz Xaver Zacherl
relation cast member
action find_reverse
entity Richard L. Stevens
relation cast member
['Stargate Infinity', 'cast member', 'Franz Xaver Zacherl'] ['Stargate Infinity', 'cast member', 'Richard L. Stevens']
ASK WHERE { resource:Stargate_Infinity property:cast_member resource:Franz_Xaver_Zacherl . resource:Stargate_Infinity property:cast_member resource:Richard_L._Stevens }
[]
common name
SYSTEM
NO
(Q837622,P161,Q1449760) (Q837622,P161,Q7327208)
action is_in
entity Q837622
action intersection
action find_reverse
entity Q1449760
relation P161
action find_reverse
entity Q7327208
relation P161
[ANSWER]
['Q837622', 'P161', 'Q1449760'] ['Q837622', 'P161', 'Q7327208']
ASK WHERE { resource:Q837622 property:P161 resource:Q1449760 . resource:Q837622 property:P161 resource:Q7327208 }
No
action is_in
entity Stargate Infinity
action intersection
action find_reverse
entity Franz Xaver Zacherl
relation cast member
action find_reverse
entity Richard L. Stevens
relation cast member
['Stargate Infinity', 'cast member', 'Franz Xaver Zacherl'] ['Stargate Infinity', 'cast member', 'Richard L. Stevens']
ASK WHERE { resource:Stargate_Infinity property:cast_member resource:Franz_Xaver_Zacherl . resource:Stargate_Infinity property:cast_member resource:Richard_L._Stevens }
[]