Simple Question (Direct)
Simple Question
Q1955544
P39
Q12737077
USER
What was the position for which Mustafa Kalemli was appointed ?
(Q1955544,P39,c(Q12737077))
action filter_type
action find
entity Q1955544
relation P39
type Q12737077
['Q1955544', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1955544 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Mustafa Kalemli
action filter_type
action find
entity Mustafa Kalemli
relation position held
type occupation
['Mustafa Kalemli', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Mustafa_Kalemli property:position_held ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q21030356
SYSTEM
Member of the Grand National Assembly of Turkey
Q21030356
(Q1955544,P39,c(Q12737077))
action filter_type
action find
entity Q1955544
relation P39
type Q12737077
[ANSWER]
['Q1955544', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1955544 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Member of the Grand National Assembly of Turkey
Member of the Grand National Assembly of Turkey
Member of the Grand National Assembly of Turkey
action filter_type
action find
entity Mustafa Kalemli
relation position held
type occupation
['Mustafa Kalemli', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Mustafa_Kalemli property:position_held ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21030356
P106
Q502895
USER
Who has a job as that occupation ?
(c(Q502895),P106,Q21030356)
action filter_type
action find_reverse
entity Q21030356
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q21030356']
SELECT DISTINCT ?m WHERE { ?m property:P106 resource:Q21030356 . ?m rdf:type ontology:Q502895 }
Member of the Grand National Assembly of Turkey
action filter_type
action find_reverse
entity Member of the Grand National Assembly of Turkey
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Member of the Grand National Assembly of Turkey']
SELECT DISTINCT ?m WHERE { ?m property:occupation resource:Member_of_the_Grand_National_Assembly_of_Turkey . ?m rdf:type ontology:common_name }
[]
common name
Q20988550
SYSTEM
Aydın Uslupehlivan
Q20988550
(c(Q502895),P106,Q21030356)
action filter_type
action find_reverse
entity Q21030356
relation P106
type Q502895
[ANSWER] has a job as that occupation
[{'concept': 'Q502895'}, 'P106', 'Q21030356']
SELECT DISTINCT ?m WHERE { ?m property:P106 resource:Q21030356 . ?m rdf:type ontology:Q502895 }
Aydın Uslupehlivan
Aydın Uslupehlivan has a job as that occupation
Aydın Uslupehlivan
action filter_type
action find_reverse
entity Member of the Grand National Assembly of Turkey
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Member of the Grand National Assembly of Turkey']
SELECT DISTINCT ?m WHERE { ?m property:occupation resource:Member_of_the_Grand_National_Assembly_of_Turkey . ?m rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q20988550 Q101145
P27
Q15617994
USER
Is Gorle the native country of Aydın Uslupehlivan ?
(Q20988550,P27,Q101145)
action is_in
entity Q101145
action find
entity Q20988550
relation P27
['Q20988550', 'P27', 'Q101145']
ASK WHERE { resource:Q20988550 property:P27 resource:Q101145 }
Aydın Uslupehlivan Gorle
action is_in
entity Gorle
action find
entity Aydın Uslupehlivan
relation country of citizenship
['Aydın Uslupehlivan', 'country of citizenship', 'Gorle']
ASK WHERE { resource:Aydın_Uslupehlivan property:country_of_citizenship resource:Gorle }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q20988550,P27,Q101145)
action is_in
entity Q101145
action find
entity Q20988550
relation P27
[ANSWER]
['Q20988550', 'P27', 'Q101145']
ASK WHERE { resource:Q20988550 property:P27 resource:Q101145 }
No
action is_in
entity Gorle
action find
entity Aydın Uslupehlivan
relation country of citizenship
['Aydın Uslupehlivan', 'country of citizenship', 'Gorle']
ASK WHERE { resource:Aydın_Uslupehlivan property:country_of_citizenship resource:Gorle }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by around 2457 people ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2457
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?d ) WHERE { ?n property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?k } . FILTER ( ?d = 2457 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2457
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?d ) WHERE { ?n property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?k } . FILTER ( ?d = 2457 ) }
[]
musical instrument common name
SYSTEM
4
Q46185 Q8338 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2457
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?d ) WHERE { ?n property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?k } . FILTER ( ?d = 2457 ) }
bass guitar trumpet organ drum kit
4
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2457
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?d ) WHERE { ?n property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?k } . FILTER ( ?d = 2457 ) }
[]