Simple Question (Direct)
Simple Question
Q657588
P1040
Q502895
USER
What is the name of person who editted Trade ?
(Q657588,P1040,c(Q502895))
action filter_type
action find
entity Q657588
relation P1040
type Q502895
['Q657588', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q657588 property:P1040 ?g . ?g rdf:type ontology:Q502895 }
Trade
action filter_type
action find
entity Trade
relation film editor
type common name
['Trade', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Trade property:film_editor ?g . ?g rdf:type ontology:common_name }
[]
common name
Q1567705
SYSTEM
Hansjörg Weißbrich
Q1567705
(Q657588,P1040,c(Q502895))
action filter_type
action find
entity Q657588
relation P1040
type Q502895
The name of person editted Trade is born [ANSWER]
['Q657588', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q657588 property:P1040 ?g . ?g rdf:type ontology:Q502895 }
Hansjörg Weißbrich
The name of person editted Trade is born Hansjörg Weißbrich
Hansjörg Weißbrich
action filter_type
action find
entity Trade
relation film editor
type common name
['Trade', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Trade property:film_editor ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1567705
P106
Q28640
USER
What is the profession of that person ?
(Q1567705,P106,c(Q28640))
action filter_type
action find
entity Q1567705
relation P106
type Q28640
['Q1567705', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?a WHERE { resource:Q1567705 property:P106 ?a . ?a rdf:type ontology:Q28640 }
Hansjörg Weißbrich
action filter_type
action find
entity Hansjörg Weißbrich
relation occupation
type profession
['Hansjörg Weißbrich', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?a WHERE { resource:Hansjörg_Weißbrich property:occupation ?a . ?a rdf:type ontology:profession }
[]
profession
Q7042855
SYSTEM
film editor
Q7042855
(Q1567705,P106,c(Q28640))
action filter_type
action find
entity Q1567705
relation P106
type Q28640
The profession of that person is the [ANSWER]
['Q1567705', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?a WHERE { resource:Q1567705 property:P106 ?a . ?a rdf:type ontology:Q28640 }
film editor
The profession of that person is the film editor
film editor
action filter_type
action find
entity Hansjörg Weißbrich
relation occupation
type profession
['Hansjörg Weißbrich', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?a WHERE { resource:Hansjörg_Weißbrich property:occupation ?a . ?a rdf:type ontology:profession }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P425
Q1792379
USER
How many art genres have that profession as the associated field of occupation ?
(Q7042855,P425,c(Q1792379))
action count
action filter_type
action find
entity Q7042855
relation P425
type Q1792379
['Q7042855', 'P425', {'concept': 'Q1792379'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { ?b rdf:type ontology:Q1792379 . resource:Q7042855 property:P425 ?b }
action count
action filter_type
action find
entity film editor
relation field of this occupation
type art genre
['film editor', 'field of this occupation', {'concept': 'art genre'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { ?b rdf:type ontology:art_genre . resource:film_editor property:field_of_this_occupation ?b }
[]
art genre
SYSTEM
1
Q93204
(Q7042855,P425,c(Q1792379))
action count
action filter_type
action find
entity Q7042855
relation P425
type Q1792379
[ANSWER]
['Q7042855', 'P425', {'concept': 'Q1792379'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { ?b rdf:type ontology:Q1792379 . resource:Q7042855 property:P425 ?b }
documentary film
1
action count
action filter_type
action find
entity film editor
relation field of this occupation
type art genre
['film editor', 'field of this occupation', {'concept': 'art genre'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { ?b rdf:type ontology:art_genre . resource:film_editor property:field_of_this_occupation ?b }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q657588
P58
Q502895
USER
Which person wrote the script for Trade ?
(Q657588,P58,c(Q502895))
action filter_type
action find
entity Q657588
relation P58
type Q502895
['Q657588', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q657588 property:P58 ?g . ?g rdf:type ontology:Q502895 }
Trade
action filter_type
action find
entity Trade
relation screenwriter
type common name
['Trade', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Trade property:screenwriter ?g . ?g rdf:type ontology:common_name }
[]
common name
Q20894804
SYSTEM
Peter Landesman
Q20894804
(Q657588,P58,c(Q502895))
action filter_type
action find
entity Q657588
relation P58
type Q502895
[ANSWER] wrote the script for Trade
['Q657588', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q657588 property:P58 ?g . ?g rdf:type ontology:Q502895 }
Peter Landesman
Peter Landesman wrote the script for Trade
Peter Landesman
action filter_type
action find
entity Trade
relation screenwriter
type common name
['Trade', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Trade property:screenwriter ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1567705
P21
Q290
USER
Which sex does Hansjörg Weißbrich belong to ?
(Q1567705,P21,c(Q290))
action filter_type
action find
entity Q1567705
relation P21
type Q290
['Q1567705', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q1567705 property:P21 ?h . ?h rdf:type ontology:Q290 }
Hansjörg Weißbrich
action filter_type
action find
entity Hansjörg Weißbrich
relation gender
type sex
['Hansjörg Weißbrich', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Hansjörg_Weißbrich property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1567705,P21,c(Q290))
action filter_type
action find
entity Q1567705
relation P21
type Q290
Hansjörg Weißbrich belongs to [ANSWER]
['Q1567705', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q1567705 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
Hansjörg Weißbrich belongs to male
male
action filter_type
action find
entity Hansjörg Weißbrich
relation gender
type sex
['Hansjörg Weißbrich', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Hansjörg_Weißbrich property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1567705
P27
Q1048835
USER
Which political territory is that person a civilian of ?
(Q6581097,P27,c(Q1048835))
action filter_type
action find
entity Q1567705
relation P27
type Q1048835
['Q6581097', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q1567705 property:P27 ?l . ?l rdf:type ontology:Q1048835 }
Hansjörg Weißbrich
action filter_type
action find
entity Hansjörg Weißbrich
relation country of citizenship
type political territorial entity
['male', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Hansjörg_Weißbrich property:country_of_citizenship ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q6581097,P27,c(Q1048835))
action filter_type
action find
entity Q1567705
relation P27
type Q1048835
[ANSWER] is that person a civilian of
['Q6581097', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q1567705 property:P27 ?l . ?l rdf:type ontology:Q1048835 }
Germany
Germany is that person a civilian of
Germany
action filter_type
action find
entity Hansjörg Weißbrich
relation country of citizenship
type political territorial entity
['male', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Hansjörg_Weißbrich property:country_of_citizenship ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1567705
P19
Q515
USER
Which city is the place of birth of that person ?
(Q183,P19,c(Q515))
action filter_type
action find
entity Q1567705
relation P19
type Q515
['Q183', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { resource:Q1567705 property:P19 ?p . ?p rdf:type ontology:Q515 }
Hansjörg Weißbrich
action filter_type
action find
entity Hansjörg Weißbrich
relation place of birth
type city
['Germany', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { resource:Hansjörg_Weißbrich property:place_of_birth ?p . ?p rdf:type ontology:city }
[]
city
Q3167
SYSTEM
Siegen
Q3167
(Q183,P19,c(Q515))
action filter_type
action find
entity Q1567705
relation P19
type Q515
[ANSWER] is the place of birth of that person
['Q183', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { resource:Q1567705 property:P19 ?p . ?p rdf:type ontology:Q515 }
Siegen
Siegen is the place of birth of that person
Siegen
action filter_type
action find
entity Hansjörg Weißbrich
relation place of birth
type city
['Germany', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { resource:Hansjörg_Weißbrich property:place_of_birth ?p . ?p rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P190
Q13539802 Q13220204
USER
How many places with town privileges and administrative country subdivisions are twin city of that city ?
(c(Q13539802),P190,Q3167) (c(Q13220204),P190,Q3167) (c(Q13539802),P190,Q3167) (c(Q13220204),P190,Q3167)
action count
action union
action filter_type
action find_reverse
entity Q3167
relation P190
type Q13539802
action filter_type
action find_reverse
entity Q3167
relation P190
type Q13220204
[{'concept': 'Q13539802'}, 'P190', 'Q3167'] [{'concept': 'Q13220204'}, 'P190', 'Q3167'] [{'concept': 'Q13539802'}, 'P190', 'Q3167'] [{'concept': 'Q13220204'}, 'P190', 'Q3167']
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { ?i property:P190 resource:Q3167 . ?i rdf:type ontology:Q13539802 } UNION { ?i property:P190 resource:Q3167 . ?i rdf:type ontology:Q13220204 } }
action count
action union
action filter_type
action find_reverse
entity Siegen
relation sister city
type place with town rights and privileges
action filter_type
action find_reverse
entity Siegen
relation sister city
type second-level administrative country subdivision
[{'concept': 'place with town rights and privileges'}, 'sister city', 'Siegen'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Siegen'] [{'concept': 'place with town rights and privileges'}, 'sister city', 'Siegen'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Siegen']
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { ?i property:sister_city resource:Siegen . ?i rdf:type ontology:place_with_town_rights_and_privileges } UNION { ?i property:sister_city resource:Siegen . ?i rdf:type ontology:second-level_administrative_country_subdivision } }
[]
place with town rights and privileges second-level administrative country subdivision
SYSTEM
1 places with town privileges and 1 administrative country subdivisions
Q102728 Q208764
(c(Q13539802),P190,Q3167) (c(Q13220204),P190,Q3167) (c(Q13539802),P190,Q3167) (c(Q13220204),P190,Q3167)
action count
action union
action filter_type
action find_reverse
entity Q3167
relation P190
type Q13539802
action filter_type
action find_reverse
entity Q3167
relation P190
type Q13220204
[ANSWER]
[{'concept': 'Q13539802'}, 'P190', 'Q3167'] [{'concept': 'Q13220204'}, 'P190', 'Q3167'] [{'concept': 'Q13539802'}, 'P190', 'Q3167'] [{'concept': 'Q13220204'}, 'P190', 'Q3167']
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { ?i property:P190 resource:Q3167 . ?i rdf:type ontology:Q13539802 } UNION { ?i property:P190 resource:Q3167 . ?i rdf:type ontology:Q13220204 } }
Ypres Katwijk
1 places with town privileges and 1 administrative country subdivisions
action count
action union
action filter_type
action find_reverse
entity Siegen
relation sister city
type place with town rights and privileges
action filter_type
action find_reverse
entity Siegen
relation sister city
type second-level administrative country subdivision
[{'concept': 'place with town rights and privileges'}, 'sister city', 'Siegen'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Siegen'] [{'concept': 'place with town rights and privileges'}, 'sister city', 'Siegen'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Siegen']
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { ?i property:sister_city resource:Siegen . ?i rdf:type ontology:place_with_town_rights_and_privileges } UNION { ?i property:sister_city resource:Siegen . ?i rdf:type ontology:second-level_administrative_country_subdivision } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3167
P127
Q483110
USER
Which stadium is under posessision of that city ?
action filter_type
action find_reverse
entity Q3167
relation P127
type Q483110
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q483110 . ?f property:P127 resource:Q3167 }
Siegen
action filter_type
action find_reverse
entity Siegen
relation owned by
type stadium
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:stadium . ?f property:owned_by resource:Siegen }
[]
stadium
Q881513
SYSTEM
Leimbachstadion
Q881513
action filter_type
action find_reverse
entity Q3167
relation P127
type Q483110
[ANSWER] is under posessision of that city
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q483110 . ?f property:P127 resource:Q3167 }
Leimbachstadion
Leimbachstadion is under posessision of that city
Leimbachstadion
action filter_type
action find_reverse
entity Siegen
relation owned by
type stadium
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:stadium . ?f property:owned_by resource:Siegen }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q881513 Q183
P17
Q1048835
USER
Does that stadium belong to Germany ?
(Q881513,P17,Q183)
action is_in
entity Q183
action find
entity Q881513
relation P17
['Q881513', 'P17', 'Q183']
ASK WHERE { resource:Q881513 property:P17 resource:Q183 }
Leimbachstadion Germany
action is_in
entity Germany
action find
entity Leimbachstadion
relation country
['Leimbachstadion', 'country', 'Germany']
ASK WHERE { resource:Leimbachstadion property:country resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q881513,P17,Q183)
action is_in
entity Q183
action find
entity Q881513
relation P17
[ANSWER]
['Q881513', 'P17', 'Q183']
ASK WHERE { resource:Q881513 property:P17 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Leimbachstadion
relation country
['Leimbachstadion', 'country', 'Germany']
ASK WHERE { resource:Leimbachstadion property:country resource:Germany }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P115
Q483110 Q476028
USER
Which association football clubs have exactly 1 stadium as their ground ?
(c(Q476028),P115,c(Q483110))
action equal
action find_tuple_counts
relation P115
type Q476028
type Q483110
value 1
[{'concept': 'Q476028'}, 'P115', {'concept': 'Q483110'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?h ) WHERE { ?q rdf:type ontology:Q476028 . ?l rdf:type ontology:Q483110 . ?q property:P115 ?l } GROUP BY ?q } . FILTER ( ?h = 1 ) }
action equal
action find_tuple_counts
relation home venue
type association football club
type stadium
value 1
[{'concept': 'association football club'}, 'home venue', {'concept': 'stadium'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?h ) WHERE { ?q rdf:type ontology:association_football_club . ?l rdf:type ontology:stadium . ?q property:home_venue ?l } GROUP BY ?q } . FILTER ( ?h = 1 ) }
[]
stadium association football club
Q2399999 Q3039024
SYSTEM
Haarlem Kennemerland, Zwolsche Boys
Q2399999 Q3039024
(c(Q476028),P115,c(Q483110))
action equal
action find_tuple_counts
relation P115
type Q476028
type Q483110
value 1
[ANSWERS] have exactly 1 stadium as their ground
[{'concept': 'Q476028'}, 'P115', {'concept': 'Q483110'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?h ) WHERE { ?q rdf:type ontology:Q476028 . ?l rdf:type ontology:Q483110 . ?q property:P115 ?l } GROUP BY ?q } . FILTER ( ?h = 1 ) }
Haarlem Kennemerland Zwolsche Boys
Haarlem Kennemerland and Zwolsche Boys have exactly 1 stadium as their ground
Haarlem Kennemerland Zwolsche Boys
action equal
action find_tuple_counts
relation home venue
type association football club
type stadium
value 1
[{'concept': 'association football club'}, 'home venue', {'concept': 'stadium'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?l ) AS ?h ) WHERE { ?q rdf:type ontology:association_football_club . ?l rdf:type ontology:stadium . ?q property:home_venue ?l } GROUP BY ?q } . FILTER ( ?h = 1 ) }
[]