Simple Question (Direct)
Simple Question
Q4664800
P1344
Q2312410
USER
Which sport discipline did Abdelghani Demmou participate in ?
(Q4664800,P1344,c(Q2312410))
action filter_type
action find
entity Q4664800
relation P1344
type Q2312410
['Q4664800', 'P1344', {'concept': 'Q2312410'}]
SELECT DISTINCT ?o WHERE { resource:Q4664800 property:P1344 ?o . ?o rdf:type ontology:Q2312410 }
Abdelghani Demmou
action filter_type
action find
entity Abdelghani Demmou
relation participant of
type sport discipline
['Abdelghani Demmou', 'participant of', {'concept': 'sport discipline'}]
SELECT DISTINCT ?o WHERE { resource:Abdelghani_Demmou property:participant_of ?o . ?o rdf:type ontology:sport_discipline }
[]
sport discipline
Q11865693
SYSTEM
football at the 2016 Summer Olympics
Q11865693
(Q4664800,P1344,c(Q2312410))
action filter_type
action find
entity Q4664800
relation P1344
type Q2312410
Abdelghani Demmou participated in [ANSWER]
['Q4664800', 'P1344', {'concept': 'Q2312410'}]
SELECT DISTINCT ?o WHERE { resource:Q4664800 property:P1344 ?o . ?o rdf:type ontology:Q2312410 }
football at the 2016 Summer Olympics
Abdelghani Demmou participated in football at the 2016 Summer Olympics
football at the 2016 Summer Olympics
action filter_type
action find
entity Abdelghani Demmou
relation participant of
type sport discipline
['Abdelghani Demmou', 'participant of', {'concept': 'sport discipline'}]
SELECT DISTINCT ?o WHERE { resource:Abdelghani_Demmou property:participant_of ?o . ?o rdf:type ontology:sport_discipline }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4664800
P27
Q15617994
USER
Which administrative territory is Abdelghani Demmou an inhabitant of ?
(Q4664800,P27,c(Q15617994))
action filter_type
action find
entity Q4664800
relation P27
type Q15617994
['Q4664800', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q4664800 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Abdelghani Demmou
action filter_type
action find
entity Abdelghani Demmou
relation country of citizenship
type designation for an administrative territorial entity
['Abdelghani Demmou', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Abdelghani_Demmou property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q262
SYSTEM
Algeria
Q262
(Q4664800,P27,c(Q15617994))
action filter_type
action find
entity Q4664800
relation P27
type Q15617994
The [ANSWER] is Abdelghani Demmou an inhabitant of
['Q4664800', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q4664800 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Algeria
The Algeria is Abdelghani Demmou an inhabitant of
Algeria
action filter_type
action find
entity Abdelghani Demmou
relation country of citizenship
type designation for an administrative territorial entity
['Abdelghani Demmou', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Abdelghani_Demmou property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1906052
Q15617994
USER
And how about Marvin Camras?
(Q1906052,P27,c(Q15617994))
action filter_type
action find
entity Q1906052
relation P27
type Q15617994
['Q1906052', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q1906052 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
Marvin Camras
action filter_type
action find
entity Marvin Camras
relation country of citizenship
type designation for an administrative territorial entity
['Marvin Camras', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Marvin_Camras property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1906052,P27,c(Q15617994))
action filter_type
action find
entity Q1906052
relation P27
type Q15617994
[ANSWER]
['Q1906052', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q1906052 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity Marvin Camras
relation country of citizenship
type designation for an administrative territorial entity
['Marvin Camras', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Marvin_Camras property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q30 Q5559111
P47
Q15617994
USER
Does Gibraltar, Buckinghamshire share the border with that one ?
(Q30,P47,Q5559111)
action is_in
entity Q5559111
action find
entity Q30
relation P47
['Q30', 'P47', 'Q5559111']
ASK WHERE { resource:Q30 property:P47 resource:Q5559111 }
United States of America Gibraltar, Buckinghamshire
action is_in
entity Gibraltar, Buckinghamshire
action find
entity United States of America
relation shares border with
['United States of America', 'shares border with', 'Gibraltar, Buckinghamshire']
ASK WHERE { resource:United_States_of_America property:shares_border_with resource:Gibraltar,_Buckinghamshire }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q30,P47,Q5559111)
action is_in
entity Q5559111
action find
entity Q30
relation P47
[ANSWER]
['Q30', 'P47', 'Q5559111']
ASK WHERE { resource:Q30 property:P47 resource:Q5559111 }
No
action is_in
entity Gibraltar, Buckinghamshire
action find
entity United States of America
relation shares border with
['United States of America', 'shares border with', 'Gibraltar, Buckinghamshire']
ASK WHERE { resource:United_States_of_America property:shares_border_with resource:Gibraltar,_Buckinghamshire }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q262 Q8560665 Q640278
P47
Q15617994
USER
Does Weehawken School District and Sehlen share a border with Algeria ?
(Q262,P47,Q8560665) (Q262,P47,Q640278)
action is_in
entity Q262
action intersection
action find_reverse
entity Q8560665
relation P47
action find_reverse
entity Q640278
relation P47
['Q262', 'P47', 'Q8560665'] ['Q262', 'P47', 'Q640278']
ASK WHERE { resource:Q262 property:P47 resource:Q8560665 . resource:Q262 property:P47 resource:Q640278 }
Algeria Weehawken School District Sehlen
action is_in
entity Algeria
action intersection
action find_reverse
entity Weehawken School District
relation shares border with
action find_reverse
entity Sehlen
relation shares border with
['Algeria', 'shares border with', 'Weehawken School District'] ['Algeria', 'shares border with', 'Sehlen']
ASK WHERE { resource:Algeria property:shares_border_with resource:Weehawken_School_District . resource:Algeria property:shares_border_with resource:Sehlen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q262,P47,Q8560665) (Q262,P47,Q640278)
action is_in
entity Q262
action intersection
action find_reverse
entity Q8560665
relation P47
action find_reverse
entity Q640278
relation P47
[ANSWER]
['Q262', 'P47', 'Q8560665'] ['Q262', 'P47', 'Q640278']
ASK WHERE { resource:Q262 property:P47 resource:Q8560665 . resource:Q262 property:P47 resource:Q640278 }
No
action is_in
entity Algeria
action intersection
action find_reverse
entity Weehawken School District
relation shares border with
action find_reverse
entity Sehlen
relation shares border with
['Algeria', 'shares border with', 'Weehawken School District'] ['Algeria', 'shares border with', 'Sehlen']
ASK WHERE { resource:Algeria property:shares_border_with resource:Weehawken_School_District . resource:Algeria property:shares_border_with resource:Sehlen }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q30 Q403 Q801
P530
Q15617994
USER
Does United States of America have diplomatic relations with Serbia and Israel ?
(Q30,P530,Q403) (Q30,P530,Q801)
action is_in
entity Q30
action intersection
action find_reverse
entity Q403
relation P530
action find_reverse
entity Q801
relation P530
['Q30', 'P530', 'Q403'] ['Q30', 'P530', 'Q801']
ASK WHERE { resource:Q30 property:P530 resource:Q403 . resource:Q30 property:P530 resource:Q801 }
United States of America Serbia Israel
action is_in
entity United States of America
action intersection
action find_reverse
entity Serbia
relation diplomatic relation
action find_reverse
entity Israel
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Serbia'] ['United States of America', 'diplomatic relation', 'Israel']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Serbia . resource:United_States_of_America property:diplomatic_relation resource:Israel }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q30,P530,Q403) (Q30,P530,Q801)
action is_in
entity Q30
action intersection
action find_reverse
entity Q403
relation P530
action find_reverse
entity Q801
relation P530
[ANSWER]
['Q30', 'P530', 'Q403'] ['Q30', 'P530', 'Q801']
ASK WHERE { resource:Q30 property:P530 resource:Q403 . resource:Q30 property:P530 resource:Q801 }
Yes
action is_in
entity United States of America
action intersection
action find_reverse
entity Serbia
relation diplomatic relation
action find_reverse
entity Israel
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Serbia'] ['United States of America', 'diplomatic relation', 'Israel']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Serbia . resource:United_States_of_America property:diplomatic_relation resource:Israel }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q4664800 Q25350137
P106
Q12737077
USER
Does mayor of San Antonio have Abdelghani Demmou as his/her as a career ?
(Q4664800,P106,Q25350137)
action is_in
entity Q25350137
action find
entity Q4664800
relation P106
['Q4664800', 'P106', 'Q25350137']
ASK WHERE { resource:Q4664800 property:P106 resource:Q25350137 }
Abdelghani Demmou mayor of San Antonio
action is_in
entity mayor of San Antonio
action find
entity Abdelghani Demmou
relation occupation
['Abdelghani Demmou', 'occupation', 'mayor of San Antonio']
ASK WHERE { resource:Abdelghani_Demmou property:occupation resource:mayor_of_San_Antonio }
[]
occupation
SYSTEM
NO
(Q4664800,P106,Q25350137)
action is_in
entity Q25350137
action find
entity Q4664800
relation P106
[ANSWER]
['Q4664800', 'P106', 'Q25350137']
ASK WHERE { resource:Q4664800 property:P106 resource:Q25350137 }
No
action is_in
entity mayor of San Antonio
action find
entity Abdelghani Demmou
relation occupation
['Abdelghani Demmou', 'occupation', 'mayor of San Antonio']
ASK WHERE { resource:Abdelghani_Demmou property:occupation resource:mayor_of_San_Antonio }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations with atleast 101 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 101
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?l >= 101 ) . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?l ) WHERE { ?y property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 } GROUP BY ?y } }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 101
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?l >= 101 ) . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?l ) WHERE { ?y property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?y } }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 101
[ANSWERS] have diplomatic relations with atleast 101 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?l >= 101 ) . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?l ) WHERE { ?y property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 } GROUP BY ?y } }
Germany Australia
Germany and Australia have diplomatic relations with atleast 101 administrative territories
Germany Australia
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 101
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?l >= 101 ) . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?l ) WHERE { ?y property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?y } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16976587
P495
Q838948
USER
Does Mister Smile originate at those political territories ?
(Q16976587,P495,Q183) (Q16976587,P495,Q408)
action is_in
entity prev_answer
action find
entity Q16976587
relation P495
['Q16976587', 'P495', 'Q183'] ['Q16976587', 'P495', 'Q408']
ASK WHERE { VALUES ( ?m ) { ( resource:Q183 ) ( resource:Q408 ) } . resource:Q16976587 property:P495 ?m }
Mister Smile
action is_in
entity prev_answer
action find
entity Mister Smile
relation country of origin
['Mister Smile', 'country of origin', 'Germany'] ['Mister Smile', 'country of origin', 'Australia']
ASK WHERE { VALUES ( ?m ) { ( resource:Germany ) ( resource:Australia ) } . resource:Mister_Smile property:country_of_origin ?m }
[]
work of art
SYSTEM
NO
(Q16976587,P495,Q183) (Q16976587,P495,Q408)
action is_in
entity prev_answer
action find
entity Q16976587
relation P495
[ANSWER]
['Q16976587', 'P495', 'Q183'] ['Q16976587', 'P495', 'Q408']
ASK WHERE { VALUES ( ?m ) { ( resource:Q183 ) ( resource:Q408 ) } . resource:Q16976587 property:P495 ?m }
No
action is_in
entity prev_answer
action find
entity Mister Smile
relation country of origin
['Mister Smile', 'country of origin', 'Germany'] ['Mister Smile', 'country of origin', 'Australia']
ASK WHERE { VALUES ( ?m ) { ( resource:Germany ) ( resource:Australia ) } . resource:Mister_Smile property:country_of_origin ?m }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q262
P6
Q502895
USER
Which person does Algeria serve as the head of government for ?
(Q262,P6,c(Q502895))
action filter_type
action find
entity Q262
relation P6
type Q502895
['Q262', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q262 property:P6 ?f . ?f rdf:type ontology:Q502895 }
Algeria
action filter_type
action find
entity Algeria
relation head of government
type common name
['Algeria', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Algeria property:head_of_government ?f . ?f rdf:type ontology:common_name }
[]
common name
Q57901
SYSTEM
Abdelmalek Sellal
Q57901
(Q262,P6,c(Q502895))
action filter_type
action find
entity Q262
relation P6
type Q502895
[ANSWER] Algeria serves as the head of government
['Q262', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q262 property:P6 ?f . ?f rdf:type ontology:Q502895 }
Abdelmalek Sellal
Abdelmalek Sellal Algeria serves as the head of government
Abdelmalek Sellal
action filter_type
action find
entity Algeria
relation head of government
type common name
['Algeria', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Algeria property:head_of_government ?f . ?f rdf:type ontology:common_name }
[]