Simple Question (Direct)
Simple Question
Q586343
P19
Q56061
USER
Which administrative territory was Dzmitry Baha born in ?
(Q586343,P19,c(Q56061))
action filter_type
action find
entity Q586343
relation P19
type Q56061
['Q586343', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . resource:Q586343 property:P19 ?c }
Dzmitry Baha
action filter_type
action find
entity Dzmitry Baha
relation place of birth
type administrative territorial entity
['Dzmitry Baha', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . resource:Dzmitry_Baha property:place_of_birth ?c }
[]
administrative territorial entity
Q2280
SYSTEM
Minsk
Q2280
(Q586343,P19,c(Q56061))
action filter_type
action find
entity Q586343
relation P19
type Q56061
Dzmitry Baha was born in [ANSWER]
['Q586343', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . resource:Q586343 property:P19 ?c }
Minsk
Dzmitry Baha was born in Minsk
Minsk
action filter_type
action find
entity Dzmitry Baha
relation place of birth
type administrative territorial entity
['Dzmitry Baha', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . resource:Dzmitry_Baha property:place_of_birth ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q586343
P21
Q290
USER
What is the sex of Dzmitry Baha ?
(Q586343,P21,c(Q290))
action filter_type
action find
entity Q586343
relation P21
type Q290
['Q586343', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q586343 property:P21 ?n . ?n rdf:type ontology:Q290 }
Dzmitry Baha
action filter_type
action find
entity Dzmitry Baha
relation gender
type sex
['Dzmitry Baha', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Dzmitry_Baha property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q586343,P21,c(Q290))
action filter_type
action find
entity Q586343
relation P21
type Q290
The sex of Dzmitry Baha is the [ANSWER]
['Q586343', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q586343 property:P21 ?n . ?n rdf:type ontology:Q290 }
male
The sex of Dzmitry Baha is the male
male
action filter_type
action find
entity Dzmitry Baha
relation gender
type sex
['Dzmitry Baha', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Dzmitry_Baha property:gender ?n . ?n rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q586343
P54
Q6979593
USER
What is that person a member of ?
(Q6581097,P54,c(Q6979593))
action filter_type
action find
entity Q586343
relation P54
type Q6979593
['Q6581097', 'P54', {'concept': 'Q6979593'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q6979593 . resource:Q586343 property:P54 ?d }
Dzmitry Baha
action filter_type
action find
entity Dzmitry Baha
relation member of sports team
type national association football team
['male', 'member of sports team', {'concept': 'national association football team'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:national_association_football_team . resource:Dzmitry_Baha property:member_of_sports_team ?d }
[]
national association football team
Q1830925
SYSTEM
Belarus Olympic football team
Q1830925
(Q6581097,P54,c(Q6979593))
action filter_type
action find
entity Q586343
relation P54
type Q6979593
That person a member of is the [ANSWER]
['Q6581097', 'P54', {'concept': 'Q6979593'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q6979593 . resource:Q586343 property:P54 ?d }
Belarus Olympic football team
That person a member of is the Belarus Olympic football team
Belarus Olympic football team
action filter_type
action find
entity Dzmitry Baha
relation member of sports team
type national association football team
['male', 'member of sports team', {'concept': 'national association football team'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:national_association_football_team . resource:Dzmitry_Baha property:member_of_sports_team ?d }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1830925 Q2546065
P54
Q502895
USER
Does Pavel Nyakhaychyk play for the team named that one ?
(Q2546065,P54,Q1830925)
action is_in
entity Q1830925
action find
entity Q2546065
relation P54
['Q2546065', 'P54', 'Q1830925']
ASK WHERE { resource:Q2546065 property:P54 resource:Q1830925 }
Belarus Olympic football team Pavel Nyakhaychyk
action is_in
entity Belarus Olympic football team
action find
entity Pavel Nyakhaychyk
relation member of sports team
['Pavel Nyakhaychyk', 'member of sports team', 'Belarus Olympic football team']
ASK WHERE { resource:Pavel_Nyakhaychyk property:member_of_sports_team resource:Belarus_Olympic_football_team }
[]
common name
SYSTEM
YES
(Q2546065,P54,Q1830925)
action is_in
entity Q1830925
action find
entity Q2546065
relation P54
[ANSWER]
['Q2546065', 'P54', 'Q1830925']
ASK WHERE { resource:Q2546065 property:P54 resource:Q1830925 }
Yes
action is_in
entity Belarus Olympic football team
action find
entity Pavel Nyakhaychyk
relation member of sports team
['Pavel Nyakhaychyk', 'member of sports team', 'Belarus Olympic football team']
ASK WHERE { resource:Pavel_Nyakhaychyk property:member_of_sports_team resource:Belarus_Olympic_football_team }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q515 Q79529 Q56061
USER
Which administrative territories are the eponym of atleast 1 cities and chemical substances ?
(c(Q56061),P138,c(Q515)|c(Q79529))
action atleast
action union
action find_tuple_counts
relation P138
type Q56061
type Q515
action find_tuple_counts
relation P138
type Q56061
type Q79529
value 1
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q515'}, {'concept': 'Q79529'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) ?v WHERE { ?x rdf:type ?d . VALUES ( ?d ) { ( ontology:Q515 ) ( ontology:Q79529 ) } } GROUP BY ?v } . FILTER ( ?f >= 1 ) }
action atleast
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type city
action find_tuple_counts
relation named after
type administrative territorial entity
type chemical substance
value 1
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'city'}, {'concept': 'chemical substance'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) ?v WHERE { ?x rdf:type ?d . VALUES ( ?d ) { ( ontology:city ) ( ontology:chemical_substance ) } } GROUP BY ?v } . FILTER ( ?f >= 1 ) }
[]
city chemical substance administrative territorial entity
Q103661 Q3239732 Q3053020
SYSTEM
Apatity, Sulphur, Emmer-Compascuum
Q3239732 Q3053020 Q2879005 Q103661
(c(Q56061),P138,c(Q515)|c(Q79529))
action atleast
action union
action find_tuple_counts
relation P138
type Q56061
type Q515
action find_tuple_counts
relation P138
type Q56061
type Q79529
value 1
[ANSWERS] are the eponym of atleast 1 cities and chemical substances
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q515'}, {'concept': 'Q79529'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) ?v WHERE { ?x rdf:type ?d . VALUES ( ?d ) { ( ontology:Q515 ) ( ontology:Q79529 ) } } GROUP BY ?v } . FILTER ( ?f >= 1 ) }
Sulphur Emmer-Compascuum Bagdad Apatity
Apatity, Sulphur and Emmer-Compascuum are the eponym of atleast 1 cities and chemical substances
Apatity Sulphur Emmer-Compascuum
action atleast
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type city
action find_tuple_counts
relation named after
type administrative territorial entity
type chemical substance
value 1
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'city'}, {'concept': 'chemical substance'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) ?v WHERE { ?x rdf:type ?d . VALUES ( ?d ) { ( ontology:city ) ( ontology:chemical_substance ) } } GROUP BY ?v } . FILTER ( ?f >= 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3239732
P609
Q83620
USER
Which thoroughfares have that administrative territory as their departure point ?
(c(Q83620),P609,Q3239732)
action filter_type
action find_reverse
entity Q3239732
relation P609
type Q83620
[{'concept': 'Q83620'}, 'P609', 'Q3239732']
SELECT DISTINCT ?z WHERE { ?z property:P609 resource:Q3239732 . ?z rdf:type ontology:Q83620 }
Sulphur
action filter_type
action find_reverse
entity Sulphur
relation terminus location
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus location', 'Sulphur']
SELECT DISTINCT ?z WHERE { ?z property:terminus_location resource:Sulphur . ?z rdf:type ontology:thoroughfare }
[]
thoroughfare
Clarification for simple ques.
Q3239732
SYSTEM
Did you mean Sulphur ?
Q103661 Q3239732 Q3053020
(c(Q83620),P609,Q103661) (c(Q83620),P609,Q3239732) (c(Q83620),P609,Q3053020)
[ANSWER]
[{'concept': 'Q83620'}, 'P609', 'Q103661'] [{'concept': 'Q83620'}, 'P609', 'Q3239732'] [{'concept': 'Q83620'}, 'P609', 'Q3053020']
SELECT DISTINCT ?z WHERE { ?z property:P609 resource:Q3239732 . ?z rdf:type ontology:Q83620 }
Apatity Sulphur Emmer-Compascuum
Did you mean Sulphur ?
Sulphur
[{'concept': 'thoroughfare'}, 'terminus location', 'Apatity'] [{'concept': 'thoroughfare'}, 'terminus location', 'Sulphur'] [{'concept': 'thoroughfare'}, 'terminus location', 'Emmer-Compascuum']
SELECT DISTINCT ?z WHERE { ?z property:terminus_location resource:Sulphur . ?z rdf:type ontology:thoroughfare }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q83620),P609,Q3239732)
[{'concept': 'Q83620'}, 'P609', 'Q3239732']
[{'concept': 'thoroughfare'}, 'terminus location', 'Sulphur']
[]
Q13608230 Q449999
SYSTEM
Oklahoma State Highway 7 Spur, Chickasaw Turnpike
Q13608230 Q449999
(c(Q83620),P609,Q3239732)
action filter_type
action find_reverse
entity Q3239732
relation P609
type Q83620
[ANSWERS] have that administrative territory as their departure point
[{'concept': 'Q83620'}, 'P609', 'Q3239732']
SELECT DISTINCT ?z WHERE { ?z property:P609 resource:Q3239732 . ?z rdf:type ontology:Q83620 }
Oklahoma State Highway 7 Spur Chickasaw Turnpike
Oklahoma State Highway 7 Spur and Chickasaw Turnpike have that administrative territory as their departure point
Oklahoma State Highway 7 Spur Chickasaw Turnpike
action filter_type
action find_reverse
entity Sulphur
relation terminus location
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus location', 'Sulphur']
SELECT DISTINCT ?z WHERE { ?z property:terminus_location resource:Sulphur . ?z rdf:type ontology:thoroughfare }
[]