Simple Question (Direct)
Simple Question
Q213521
P26
Q502895
USER
Who are married to Ashlee Simpson ?
(Q213521,P26,c(Q502895))
action filter_type
action find
entity Q213521
relation P26
type Q502895
['Q213521', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q213521 property:P26 ?u }
Ashlee Simpson
action filter_type
action find
entity Ashlee Simpson
relation spouse
type common name
['Ashlee Simpson', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:Ashlee_Simpson property:spouse ?u }
[]
common name
Q310166 Q1057939
SYSTEM
Pete Wentz, Evan Ross
Q310166 Q1057939
(Q213521,P26,c(Q502895))
action filter_type
action find
entity Q213521
relation P26
type Q502895
[ANSWERS] are married to Ashlee Simpson
['Q213521', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q213521 property:P26 ?u }
Pete Wentz Evan Ross
Pete Wentz and Evan Ross are married to Ashlee Simpson
Pete Wentz Evan Ross
action filter_type
action find
entity Ashlee Simpson
relation spouse
type common name
['Ashlee Simpson', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:Ashlee_Simpson property:spouse ?u }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q310166 Q1057939
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Pete Wentz and Evan Ross ?
(Q310166,P27,c(Q15617994)) (Q1057939,P27,c(Q15617994))
action union
action filter_type
action find
entity Q310166
relation P27
type Q15617994
action filter_type
action find
entity Q1057939
relation P27
type Q15617994
['Q310166', 'P27', {'concept': 'Q15617994'}] ['Q1057939', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:Q15617994 . resource:Q310166 property:P27 ?a } UNION { resource:Q1057939 property:P27 ?a . ?a rdf:type ontology:Q15617994 } }
Pete Wentz Evan Ross
action union
action filter_type
action find
entity Pete Wentz
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Evan Ross
relation country of citizenship
type designation for an administrative territorial entity
['Pete Wentz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Evan Ross', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Pete_Wentz property:country_of_citizenship ?a } UNION { resource:Evan_Ross property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q30 Q30
SYSTEM
United States of America
Q30 Q30
(Q310166,P27,c(Q15617994)) (Q1057939,P27,c(Q15617994))
action union
action filter_type
action find
entity Q310166
relation P27
type Q15617994
action filter_type
action find
entity Q1057939
relation P27
type Q15617994
[ANSWER] and [ANSWER] are the countries of citizenship of Pete Wentz and Evan Ross
['Q310166', 'P27', {'concept': 'Q15617994'}] ['Q1057939', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:Q15617994 . resource:Q310166 property:P27 ?a } UNION { resource:Q1057939 property:P27 ?a . ?a rdf:type ontology:Q15617994 } }
United States of America United States of America
United States of America and United States of America are the countries of citizenship of Pete Wentz and Evan Ross
United States of America United States of America
action union
action filter_type
action find
entity Pete Wentz
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Evan Ross
relation country of citizenship
type designation for an administrative territorial entity
['Pete Wentz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Evan Ross', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Pete_Wentz property:country_of_citizenship ?a } UNION { resource:Evan_Ross property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1057939
P40
Q502895
USER
Which people have Evan Ross as an offspring ?
(c(Q502895),P40,Q1057939)
action filter_type
action find_reverse
entity Q1057939
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q1057939']
SELECT DISTINCT ?u WHERE { ?u property:P40 resource:Q1057939 . ?u rdf:type ontology:Q502895 }
Evan Ross
action filter_type
action find_reverse
entity Evan Ross
relation child
type common name
[{'concept': 'common name'}, 'child', 'Evan Ross']
SELECT DISTINCT ?u WHERE { ?u property:child resource:Evan_Ross . ?u rdf:type ontology:common_name }
[]
common name
Q4794641 Q36290
SYSTEM
Arne Næss, Jr., Diana Ross
Q4794641 Q36290
(c(Q502895),P40,Q1057939)
action filter_type
action find_reverse
entity Q1057939
relation P40
type Q502895
[ANSWERS] have Evan Ross as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q1057939']
SELECT DISTINCT ?u WHERE { ?u property:P40 resource:Q1057939 . ?u rdf:type ontology:Q502895 }
Arne Næss, Jr. Diana Ross
Arne Næss, Jr. and Diana Ross have Evan Ross as an offspring
Arne Næss, Jr. Diana Ross
action filter_type
action find_reverse
entity Evan Ross
relation child
type common name
[{'concept': 'common name'}, 'child', 'Evan Ross']
SELECT DISTINCT ?u WHERE { ?u property:child resource:Evan_Ross . ?u rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q36290
P264
Q334453
USER
Who sponsored the recoding of that person ?
(Q36290,P264,c(Q334453))
action filter_type
action find
entity Q36290
relation P264
type Q334453
['Q36290', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?b WHERE { resource:Q36290 property:P264 ?b . ?b rdf:type ontology:Q334453 }
Diana Ross
action filter_type
action find
entity Diana Ross
relation record label
type division
['Diana Ross', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?b WHERE { resource:Diana_Ross property:record_label ?b . ?b rdf:type ontology:division }
[]
division
Clarification for simple ques.
Q4794641
SYSTEM
Did you mean Arne Næss, Jr. ?
Q4794641 Q36290
(Q4794641,P264,c(Q334453)) (Q36290,P264,c(Q334453))
[ANSWER]
['Q4794641', 'P264', {'concept': 'Q334453'}] ['Q36290', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?b WHERE { resource:Q36290 property:P264 ?b . ?b rdf:type ontology:Q334453 }
Arne Næss, Jr. Diana Ross
Did you mean Arne Næss, Jr. ?
Arne Næss, Jr.
['Arne Næss, Jr.', 'record label', {'concept': 'division'}] ['Diana Ross', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?b WHERE { resource:Diana_Ross property:record_label ?b . ?b rdf:type ontology:division }
[]
Simple Question (Coreferenced)
USER
No, I meant Diana Ross. Could you tell me the answer for that?
(Q36290,P264,c(Q334453))
Q36290
['Q36290', 'P264', {'concept': 'Q334453'}]
['Diana Ross', 'record label', {'concept': 'division'}]
[]
Q43327
SYSTEM
Motown
Q43327
(Q36290,P264,c(Q334453))
action filter_type
action find
entity Q36290
relation P264
type Q334453
[ANSWER] sponsored the recoding of that person
['Q36290', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?b WHERE { resource:Q36290 property:P264 ?b . ?b rdf:type ontology:Q334453 }
Motown
Motown sponsored the recoding of that person
Motown
action filter_type
action find
entity Diana Ross
relation record label
type division
['Diana Ross', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?b WHERE { resource:Diana_Ross property:record_label ?b . ?b rdf:type ontology:division }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q7382049 Q30
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relations with United States of America and are not Russian Foundation for Advanced Research Projects in the Defense Industry present in ?
AND((Q30,P530,c(Q15617994)), NOT((Q7382049,P17,c(Q15617994))))
action filter_type
action difference
action find
entity Q30
relation P530
action find
entity Q7382049
relation P17
type Q15617994
{'AND': [['Q30', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q7382049', 'P17', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?a WHERE { resource:Q30 property:P530 ?a . FILTER NOT EXISTS { resource:Q7382049 property:P17 ?a } . ?a rdf:type ontology:Q15617994 }
Russian Foundation for Advanced Research Projects in the Defense Industry United States of America
action filter_type
action difference
action find
entity United States of America
relation diplomatic relation
action find
entity Russian Foundation for Advanced Research Projects in the Defense Industry
relation country
type designation for an administrative territorial entity
{'AND': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Russian Foundation for Advanced Research Projects in the Defense Industry', 'country', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?a WHERE { resource:United_States_of_America property:diplomatic_relation ?a . FILTER NOT EXISTS { resource:Russian_Foundation_for_Advanced_Research_Projects_in_the_Defense_Industry property:country ?a } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q222 Q17 Q805 Q37 Q889 Q38 Q403 Q668 Q801 Q155
SYSTEM
Some of them are Albania, Japan, Yemen, Lithuania, Afghanistan, Italy, Serbia, India, Israel, Brazil
Q805 Q38 Q222 Q801 Q155 Q148 Q1011 Q889 Q796 Q17 Q37 Q953 Q668 Q403 Q347 Q414
AND((Q30,P530,c(Q15617994)), NOT((Q7382049,P17,c(Q15617994))))
action filter_type
action difference
action find
entity Q30
relation P530
action find
entity Q7382049
relation P17
type Q15617994
[ANSWERS] have diplomatic relations with United States of America and are not Russian Foundation for Advanced Research Projects in the Defense Industry present in
{'AND': [['Q30', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q7382049', 'P17', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?a WHERE { resource:Q30 property:P530 ?a . FILTER NOT EXISTS { resource:Q7382049 property:P17 ?a } . ?a rdf:type ontology:Q15617994 }
Yemen Italy Albania Israel Brazil People's Republic of China Cape Verde Afghanistan Iraq Japan Lithuania Zambia India Serbia Liechtenstein Argentina
Albania, Japan, Yemen, Lithuania, Afghanistan, Italy, Serbia, India, Israel and Brazil have diplomatic relations with United States of America and are not Russian Foundation for Advanced Research Projects in the Defense Industry present in
Albania Japan Yemen Lithuania Afghanistan Italy Serbia India Israel Brazil
action filter_type
action difference
action find
entity United States of America
relation diplomatic relation
action find
entity Russian Foundation for Advanced Research Projects in the Defense Industry
relation country
type designation for an administrative territorial entity
{'AND': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Russian Foundation for Advanced Research Projects in the Defense Industry', 'country', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?a WHERE { resource:United_States_of_America property:diplomatic_relation ?a . FILTER NOT EXISTS { resource:Russian_Foundation_for_Advanced_Research_Projects_in_the_Defense_Industry property:country ?a } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4754627
P530
Q15617994
USER
Are Andover Regional School District known to have diplomatic connections with those ones ?
(Q4754627,P530,Q222) (Q4754627,P530,Q17) (Q4754627,P530,Q805) (Q4754627,P530,Q37) (Q4754627,P530,Q889) (Q4754627,P530,Q38) (Q4754627,P530,Q403) (Q4754627,P530,Q668) (Q4754627,P530,Q801) (Q4754627,P530,Q155)
action is_in
entity prev_answer
action find
entity Q4754627
relation P530
['Q4754627', 'P530', 'Q222'] ['Q4754627', 'P530', 'Q17'] ['Q4754627', 'P530', 'Q805'] ['Q4754627', 'P530', 'Q37'] ['Q4754627', 'P530', 'Q889'] ['Q4754627', 'P530', 'Q38'] ['Q4754627', 'P530', 'Q403'] ['Q4754627', 'P530', 'Q668'] ['Q4754627', 'P530', 'Q801'] ['Q4754627', 'P530', 'Q155']
ASK WHERE { resource:Q4754627 property:P530 ?g . VALUES ( ?g ) { ( resource:Q805 ) ( resource:Q38 ) ( resource:Q222 ) } }
Andover Regional School District
action is_in
entity prev_answer
action find
entity Andover Regional School District
relation diplomatic relation
['Andover Regional School District', 'diplomatic relation', 'Albania'] ['Andover Regional School District', 'diplomatic relation', 'Japan'] ['Andover Regional School District', 'diplomatic relation', 'Yemen'] ['Andover Regional School District', 'diplomatic relation', 'Lithuania'] ['Andover Regional School District', 'diplomatic relation', 'Afghanistan'] ['Andover Regional School District', 'diplomatic relation', 'Italy'] ['Andover Regional School District', 'diplomatic relation', 'Serbia'] ['Andover Regional School District', 'diplomatic relation', 'India'] ['Andover Regional School District', 'diplomatic relation', 'Israel'] ['Andover Regional School District', 'diplomatic relation', 'Brazil']
ASK WHERE { resource:Andover_Regional_School_District property:diplomatic_relation ?g . VALUES ( ?g ) { ( resource:Yemen ) ( resource:Italy ) ( resource:Albania ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q4754627,P530,Q222) (Q4754627,P530,Q17) (Q4754627,P530,Q805) (Q4754627,P530,Q37) (Q4754627,P530,Q889) (Q4754627,P530,Q38) (Q4754627,P530,Q403) (Q4754627,P530,Q668) (Q4754627,P530,Q801) (Q4754627,P530,Q155)
action is_in
entity prev_answer
action find
entity Q4754627
relation P530
[ANSWER]
['Q4754627', 'P530', 'Q222'] ['Q4754627', 'P530', 'Q17'] ['Q4754627', 'P530', 'Q805'] ['Q4754627', 'P530', 'Q37'] ['Q4754627', 'P530', 'Q889'] ['Q4754627', 'P530', 'Q38'] ['Q4754627', 'P530', 'Q403'] ['Q4754627', 'P530', 'Q668'] ['Q4754627', 'P530', 'Q801'] ['Q4754627', 'P530', 'Q155']
ASK WHERE { resource:Q4754627 property:P530 ?g . VALUES ( ?g ) { ( resource:Q805 ) ( resource:Q38 ) ( resource:Q222 ) } }
No
action is_in
entity prev_answer
action find
entity Andover Regional School District
relation diplomatic relation
['Andover Regional School District', 'diplomatic relation', 'Albania'] ['Andover Regional School District', 'diplomatic relation', 'Japan'] ['Andover Regional School District', 'diplomatic relation', 'Yemen'] ['Andover Regional School District', 'diplomatic relation', 'Lithuania'] ['Andover Regional School District', 'diplomatic relation', 'Afghanistan'] ['Andover Regional School District', 'diplomatic relation', 'Italy'] ['Andover Regional School District', 'diplomatic relation', 'Serbia'] ['Andover Regional School District', 'diplomatic relation', 'India'] ['Andover Regional School District', 'diplomatic relation', 'Israel'] ['Andover Regional School District', 'diplomatic relation', 'Brazil']
ASK WHERE { resource:Andover_Regional_School_District property:diplomatic_relation ?g . VALUES ( ?g ) { ( resource:Yemen ) ( resource:Italy ) ( resource:Albania ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q801
P47
Q56061 Q15617994
USER
How many administrative territories or administrative territories have a shared border with Israel ?
(Q801,P47,c(Q56061)) (Q801,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q801
relation P47
type Q56061
action filter_type
action find
entity Q801
relation P47
type Q15617994
['Q801', 'P47', {'concept': 'Q56061'}] ['Q801', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { resource:Q801 property:P47 ?m . ?m rdf:type ontology:Q56061 } UNION { resource:Q801 property:P47 ?m . ?m rdf:type ontology:Q15617994 } }
Israel
action count
action union
action filter_type
action find
entity Israel
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Israel
relation shares border with
type designation for an administrative territorial entity
['Israel', 'shares border with', {'concept': 'administrative territorial entity'}] ['Israel', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { resource:Israel property:shares_border_with ?m . ?m rdf:type ontology:administrative_territorial_entity } UNION { resource:Israel property:shares_border_with ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
administrative territorial entity designation for an administrative territorial entity
SYSTEM
7
Q858 Q810 Q229 Q822 Q79 Q7172 Q36678
(Q801,P47,c(Q56061)) (Q801,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q801
relation P47
type Q56061
action filter_type
action find
entity Q801
relation P47
type Q15617994
[ANSWER]
['Q801', 'P47', {'concept': 'Q56061'}] ['Q801', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { resource:Q801 property:P47 ?m . ?m rdf:type ontology:Q56061 } UNION { resource:Q801 property:P47 ?m . ?m rdf:type ontology:Q15617994 } }
Syria Jordan Cyprus Lebanon Egypt Arab League West Bank
7
action count
action union
action filter_type
action find
entity Israel
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Israel
relation shares border with
type designation for an administrative territorial entity
['Israel', 'shares border with', {'concept': 'administrative territorial entity'}] ['Israel', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { resource:Israel property:shares_border_with ?m . ?m rdf:type ontology:administrative_territorial_entity } UNION { resource:Israel property:shares_border_with ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]