Simple Question (Direct)
Simple Question
Q1688625
P27
Q1048835
USER
Which political territory is the native country of Sascha Jusufi ?
(Q1688625,P27,c(Q1048835))
action filter_type
action find
entity Q1688625
relation P27
type Q1048835
['Q1688625', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q1688625 property:P27 ?f . ?f rdf:type ontology:Q1048835 }
Sascha Jusufi
action filter_type
action find
entity Sascha Jusufi
relation country of citizenship
type political territorial entity
['Sascha Jusufi', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Sascha_Jusufi property:country_of_citizenship ?f . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1688625,P27,c(Q1048835))
action filter_type
action find
entity Q1688625
relation P27
type Q1048835
[ANSWER] is the native country of Sascha Jusufi
['Q1688625', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q1688625 property:P27 ?f . ?f rdf:type ontology:Q1048835 }
Germany
Germany is the native country of Sascha Jusufi
Germany
action filter_type
action find
entity Sascha Jusufi
relation country of citizenship
type political territorial entity
['Sascha Jusufi', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Sascha_Jusufi property:country_of_citizenship ?f . ?f rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1688625
P641
Q349
USER
Which sport was that person a part of ?
(Q183,P641,c(Q349))
action filter_type
action find
entity Q1688625
relation P641
type Q349
['Q183', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { resource:Q1688625 property:P641 ?i . ?i rdf:type ontology:Q349 }
Sascha Jusufi
action filter_type
action find
entity Sascha Jusufi
relation sport
type sport
['Germany', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { resource:Sascha_Jusufi property:sport ?i . ?i rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q183,P641,c(Q349))
action filter_type
action find
entity Q1688625
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q183', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { resource:Q1688625 property:P641 ?i . ?i rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Sascha Jusufi
relation sport
type sport
['Germany', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { resource:Sascha_Jusufi property:sport ?i . ?i rdf:type ontology:sport }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2736 Q7815783
P641
Q502895
USER
Is Tom Finlay associated with playing that sport ?
(Q7815783,P641,Q2736)
action is_in
entity Q7815783
action find
entity Q2736
relation P641
['Q7815783', 'P641', 'Q2736']
ASK WHERE { resource:Q2736 property:P641 resource:Q7815783 }
association football Tom Finlay
action is_in
entity Tom Finlay
action find
entity association football
relation sport
['Tom Finlay', 'sport', 'association football']
ASK WHERE { resource:association_football property:sport resource:Tom_Finlay }
[]
common name
SYSTEM
NO
(Q7815783,P641,Q2736)
action is_in
entity Q7815783
action find
entity Q2736
relation P641
[ANSWER]
['Q7815783', 'P641', 'Q2736']
ASK WHERE { resource:Q2736 property:P641 resource:Q7815783 }
No
action is_in
entity Tom Finlay
action find
entity association football
relation sport
['Tom Finlay', 'sport', 'association football']
ASK WHERE { resource:association_football property:sport resource:Tom_Finlay }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7143260 Q1688625
P106
Q12737077
USER
Which occupations have Sascha Jusufi or Pat Byrne as his/her as a career ?
OR((Q1688625,P106,c(Q12737077)), (Q7143260,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1688625
relation P106
action find
entity Q7143260
relation P106
type Q12737077
{'OR': [['Q1688625', 'P106', {'concept': 'Q12737077'}], ['Q7143260', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q1688625 property:P106 ?y } UNION { resource:Q7143260 property:P106 ?y } } . ?y rdf:type ontology:Q12737077 }
Pat Byrne Sascha Jusufi
action filter_type
action union
action find
entity Sascha Jusufi
relation occupation
action find
entity Pat Byrne
relation occupation
type occupation
{'OR': [['Sascha Jusufi', 'occupation', {'concept': 'occupation'}], ['Pat Byrne', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Sascha_Jusufi property:occupation ?y } UNION { resource:Pat_Byrne property:occupation ?y } } . ?y rdf:type ontology:occupation }
[]
occupation
Q16145150 Q937857 Q177220
SYSTEM
music educator, association football player, singer
Q16145150 Q937857 Q177220
OR((Q1688625,P106,c(Q12737077)), (Q7143260,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1688625
relation P106
action find
entity Q7143260
relation P106
type Q12737077
[ANSWERS] have Sascha Jusufi or Pat Byrne as his/her as a career
{'OR': [['Q1688625', 'P106', {'concept': 'Q12737077'}], ['Q7143260', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q1688625 property:P106 ?y } UNION { resource:Q7143260 property:P106 ?y } } . ?y rdf:type ontology:Q12737077 }
music educator association football player singer
Music educator, association football player and singer have Sascha Jusufi or Pat Byrne as his/her as a career
music educator association football player singer
action filter_type
action union
action find
entity Sascha Jusufi
relation occupation
action find
entity Pat Byrne
relation occupation
type occupation
{'OR': [['Sascha Jusufi', 'occupation', {'concept': 'occupation'}], ['Pat Byrne', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Sascha_Jusufi property:occupation ?y } UNION { resource:Pat_Byrne property:occupation ?y } } . ?y rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q937857
P425
Q349
USER
Which sport has association football player as thier associated field of occupation ?
(Q937857,P425,c(Q349))
action filter_type
action find
entity Q937857
relation P425
type Q349
['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q937857 property:P425 ?h . ?h rdf:type ontology:Q349 }
association football player
action filter_type
action find
entity association football player
relation field of this occupation
type sport
['association football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:association_football_player property:field_of_this_occupation ?h . ?h rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q937857,P425,c(Q349))
action filter_type
action find
entity Q937857
relation P425
type Q349
Player [ANSWER] has [ANSWER] player as thier associated field of occupation
['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q937857 property:P425 ?h . ?h rdf:type ontology:Q349 }
association football
Player association football has association football player as thier associated field of occupation
association football
action filter_type
action find
entity association football player
relation field of this occupation
type sport
['association football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:association_football_player property:field_of_this_occupation ?h . ?h rdf:type ontology:sport }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1757103
Q349
USER
And what about official?
(Q1757103,P425,c(Q349))
action filter_type
action find
entity Q1757103
relation P425
type Q349
['Q1757103', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q349 . resource:Q1757103 property:P425 ?w }
official
action filter_type
action find
entity official
relation field of this occupation
type sport
['official', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:sport . resource:official property:field_of_this_occupation ?w }
[]
sport
Q41466
SYSTEM
ice hockey
Q41466
(Q1757103,P425,c(Q349))
action filter_type
action find
entity Q1757103
relation P425
type Q349
[ANSWER]
['Q1757103', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q349 . resource:Q1757103 property:P425 ?w }
ice hockey
ice hockey
action filter_type
action find
entity official
relation field of this occupation
type sport
['official', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:sport . resource:official property:field_of_this_occupation ?w }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P921
Q12737077 Q2342494 Q386724
USER
Which occupations were the main subjects of max number of collectables and works 's work ?
(c(Q2342494)|c(Q386724),P921,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
[[{'concept': 'Q2342494'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?l ) { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?j ) WHERE { VALUES ( ?f ) { ( ontology:Q2342494 ) ( ontology:Q386724 ) } . ?d rdf:type ?f } GROUP BY ?r } } . FILTER ( ?s = ?l ) . { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?s ) WHERE { ?x rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2342494 ) ( ontology:Q386724 ) } } GROUP BY ?i } }
action argmax
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type work
[[{'concept': 'collectable'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?l ) { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?j ) WHERE { VALUES ( ?f ) { ( ontology:collectable ) ( ontology:work ) } . ?d rdf:type ?f } GROUP BY ?r } } . FILTER ( ?s = ?l ) . { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?s ) WHERE { ?x rdf:type ?k . VALUES ( ?k ) { ( ontology:collectable ) ( ontology:work ) } } GROUP BY ?i } }
[]
occupation collectable work
Q16746569
SYSTEM
high school student
Q16746569
(c(Q2342494)|c(Q386724),P921,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
The [ANSWER] was the main subjects of max number of collectables and works 's work
[[{'concept': 'Q2342494'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?l ) { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?j ) WHERE { VALUES ( ?f ) { ( ontology:Q2342494 ) ( ontology:Q386724 ) } . ?d rdf:type ?f } GROUP BY ?r } } . FILTER ( ?s = ?l ) . { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?s ) WHERE { ?x rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2342494 ) ( ontology:Q386724 ) } } GROUP BY ?i } }
high school student
The high school student was the main subjects of max number of collectables and works 's work
high school student
action argmax
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type work
[[{'concept': 'collectable'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?l ) { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?j ) WHERE { VALUES ( ?f ) { ( ontology:collectable ) ( ontology:work ) } . ?d rdf:type ?f } GROUP BY ?r } } . FILTER ( ?s = ?l ) . { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?s ) WHERE { ?x rdf:type ?k . VALUES ( ?k ) { ( ontology:collectable ) ( ontology:work ) } } GROUP BY ?i } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q183
P47
Q1048835 Q15617994
USER
How many political territories and administrative territories are bordered by Germany ?
(c(Q1048835),P47,Q183) (c(Q15617994),P47,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q183
relation P47
type Q15617994
[{'concept': 'Q1048835'}, 'P47', 'Q183'] [{'concept': 'Q15617994'}, 'P47', 'Q183']
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { ?e rdf:type ?g . VALUES ( ?g ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } }
Germany
action count
action union
action filter_type
action find_reverse
entity Germany
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Germany
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Germany'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Germany']
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { ?e rdf:type ?g . VALUES ( ?g ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
4 political territories and 8 administrative territories
Q142 Q13116 Q55 Q40 Q213 Q29999 Q32 Q31 Q36 Q35 Q191091 Q39
(c(Q1048835),P47,Q183) (c(Q15617994),P47,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q183
relation P47
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q183'] [{'concept': 'Q15617994'}, 'P47', 'Q183']
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { ?e rdf:type ?g . VALUES ( ?g ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } }
France Benelux Netherlands Austria Czech Republic Kingdom of the Netherlands Luxembourg Belgium Poland Denmark Karlovy Vary Region Switzerland
4 political territories and 8 administrative territories
action count
action union
action filter_type
action find_reverse
entity Germany
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Germany
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Germany'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Germany']
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { ?e rdf:type ?g . VALUES ( ?g ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P35
Q502895
USER
Who are elected as the head of state of that political territory ?
action filter_type
action find
entity Q183
relation P35
type Q502895
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q183 property:P35 ?q }
Germany
action filter_type
action find
entity Germany
relation head of state
type common name
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Germany property:head_of_state ?q }
[]
common name
Q2567 Q2571 Q2594
SYSTEM
Richard von Weizsäcker, Walter Scheel, Theodor Heuss
Q2569 Q2594 Q2573 Q2563 Q2571 Q2538 Q2551 Q2567 Q2540 Q2582 Q2542
action filter_type
action find
entity Q183
relation P35
type Q502895
[ANSWERS] are elected as the head of state of that political territory
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q183 property:P35 ?q }
Karl Carstens Theodor Heuss Gustav Heinemann Roman Herzog Walter Scheel Joachim Gauck Johannes Rau Richard von Weizsäcker Christian Wulff Heinrich Lübke Horst Köhler
Richard von Weizsäcker, Walter Scheel and Theodor Heuss are elected as the head of state of that political territory
Richard von Weizsäcker Walter Scheel Theodor Heuss
action filter_type
action find
entity Germany
relation head of state
type common name
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Germany property:head_of_state ?q }
[]