Simple Question (Direct)
Simple Question
Q2504288
P937
Q56061
USER
Which is the work location of Uwe Herder ?
(Q2504288,P937,c(Q56061))
action filter_type
action find
entity Q2504288
relation P937
type Q56061
['Q2504288', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q2504288 property:P937 ?e }
Uwe Herder
action filter_type
action find
entity Uwe Herder
relation work location
type administrative territorial entity
['Uwe Herder', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Uwe_Herder property:work_location ?e }
[]
administrative territorial entity
Q1718
SYSTEM
Düsseldorf
Q1718
(Q2504288,P937,c(Q56061))
action filter_type
action find
entity Q2504288
relation P937
type Q56061
[ANSWER] is the work location of Uwe Herder
['Q2504288', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q2504288 property:P937 ?e }
Düsseldorf
Düsseldorf is the work location of Uwe Herder
Düsseldorf
action filter_type
action find
entity Uwe Herder
relation work location
type administrative territorial entity
['Uwe Herder', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Uwe_Herder property:work_location ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2504288
P102
Q7278
USER
Which political party is that person a member of ?
(Q1718,P102,c(Q7278))
action filter_type
action find
entity Q2504288
relation P102
type Q7278
['Q1718', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?e WHERE { resource:Q2504288 property:P102 ?e . ?e rdf:type ontology:Q7278 }
Uwe Herder
action filter_type
action find
entity Uwe Herder
relation member of political party
type political party
['Düsseldorf', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?e WHERE { resource:Uwe_Herder property:member_of_political_party ?e . ?e rdf:type ontology:political_party }
[]
political party
Q49768
SYSTEM
Social Democratic Party of Germany
Q49768
(Q1718,P102,c(Q7278))
action filter_type
action find
entity Q2504288
relation P102
type Q7278
[ANSWER] is that person a member of
['Q1718', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?e WHERE { resource:Q2504288 property:P102 ?e . ?e rdf:type ontology:Q7278 }
Social Democratic Party of Germany
Social Democratic Party of Germany is that person a member of
Social Democratic Party of Germany
action filter_type
action find
entity Uwe Herder
relation member of political party
type political party
['Düsseldorf', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?e WHERE { resource:Uwe_Herder property:member_of_political_party ?e . ?e rdf:type ontology:political_party }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q49768 Q183
P17
Q1048835
USER
Is that political party present in Germany ?
(Q49768,P17,Q183)
action is_in
entity Q183
action find
entity Q49768
relation P17
['Q49768', 'P17', 'Q183']
ASK WHERE { resource:Q49768 property:P17 resource:Q183 }
Social Democratic Party of Germany Germany
action is_in
entity Germany
action find
entity Social Democratic Party of Germany
relation country
['Social Democratic Party of Germany', 'country', 'Germany']
ASK WHERE { resource:Social_Democratic_Party_of_Germany property:country resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q49768,P17,Q183)
action is_in
entity Q183
action find
entity Q49768
relation P17
[ANSWER]
['Q49768', 'P17', 'Q183']
ASK WHERE { resource:Q49768 property:P17 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Social Democratic Party of Germany
relation country
['Social Democratic Party of Germany', 'country', 'Germany']
ASK WHERE { resource:Social_Democratic_Party_of_Germany property:country resource:Germany }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q49768
P463
Q7210356 Q7278
USER
How many political organizations and political parties were Social Democratic Party of Germany a member of ?
(Q49768,P463,c(Q7210356)) (Q49768,P463,c(Q7278))
action count
action union
action filter_type
action find
entity Q49768
relation P463
type Q7210356
action filter_type
action find
entity Q49768
relation P463
type Q7278
['Q49768', 'P463', {'concept': 'Q7210356'}] ['Q49768', 'P463', {'concept': 'Q7278'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { { resource:Q49768 property:P463 ?s . ?s rdf:type ontology:Q7210356 } UNION { resource:Q49768 property:P463 ?s . ?s rdf:type ontology:Q7278 } }
Social Democratic Party of Germany
action count
action union
action filter_type
action find
entity Social Democratic Party of Germany
relation member of
type political organization
action filter_type
action find
entity Social Democratic Party of Germany
relation member of
type political party
['Social Democratic Party of Germany', 'member of', {'concept': 'political organization'}] ['Social Democratic Party of Germany', 'member of', {'concept': 'political party'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { { resource:Social_Democratic_Party_of_Germany property:member_of ?s . ?s rdf:type ontology:political_organization } UNION { resource:Social_Democratic_Party_of_Germany property:member_of ?s . ?s rdf:type ontology:political_party } }
[]
political organization political party
SYSTEM
1 political organizations and 1 political parties
Q7248622 Q220945
(Q49768,P463,c(Q7210356)) (Q49768,P463,c(Q7278))
action count
action union
action filter_type
action find
entity Q49768
relation P463
type Q7210356
action filter_type
action find
entity Q49768
relation P463
type Q7278
[ANSWER]
['Q49768', 'P463', {'concept': 'Q7210356'}] ['Q49768', 'P463', {'concept': 'Q7278'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { { resource:Q49768 property:P463 ?s . ?s rdf:type ontology:Q7210356 } UNION { resource:Q49768 property:P463 ?s . ?s rdf:type ontology:Q7278 } }
Progressive Alliance Party of European Socialists
1 political organizations and 1 political parties
action count
action union
action filter_type
action find
entity Social Democratic Party of Germany
relation member of
type political organization
action filter_type
action find
entity Social Democratic Party of Germany
relation member of
type political party
['Social Democratic Party of Germany', 'member of', {'concept': 'political organization'}] ['Social Democratic Party of Germany', 'member of', {'concept': 'political party'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { { resource:Social_Democratic_Party_of_Germany property:member_of ?s . ?s rdf:type ontology:political_organization } UNION { resource:Social_Democratic_Party_of_Germany property:member_of ?s . ?s rdf:type ontology:political_party } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1718
P190
Q13220204
USER
Which administrative country subdivision is partner town of Düsseldorf ?
(Q1718,P190,c(Q13220204))
action filter_type
action find
entity Q1718
relation P190
type Q13220204
['Q1718', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?p WHERE { resource:Q1718 property:P190 ?p . ?p rdf:type ontology:Q13220204 }
Düsseldorf
action filter_type
action find
entity Düsseldorf
relation sister city
type second-level administrative country subdivision
['Düsseldorf', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?p WHERE { resource:Düsseldorf property:sister_city ?p . ?p rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q101341
SYSTEM
Lillehammer
Q101341
(Q1718,P190,c(Q13220204))
action filter_type
action find
entity Q1718
relation P190
type Q13220204
[ANSWER] is partner town of Düsseldorf
['Q1718', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?p WHERE { resource:Q1718 property:P190 ?p . ?p rdf:type ontology:Q13220204 }
Lillehammer
Lillehammer is partner town of Düsseldorf
Lillehammer
action filter_type
action find
entity Düsseldorf
relation sister city
type second-level administrative country subdivision
['Düsseldorf', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?p WHERE { resource:Düsseldorf property:sister_city ?p . ?p rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q205271
Q13220204
USER
And what about Võru?
(Q205271,P190,c(Q13220204))
action filter_type
action find
entity Q205271
relation P190
type Q13220204
['Q205271', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?f WHERE { resource:Q205271 property:P190 ?f . ?f rdf:type ontology:Q13220204 }
Võru
action filter_type
action find
entity Võru
relation sister city
type second-level administrative country subdivision
['Võru', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?f WHERE { resource:Võru property:sister_city ?f . ?f rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q925340 Q291333
SYSTEM
Kaniv, Alūksne
Q925340 Q291333
(Q205271,P190,c(Q13220204))
action filter_type
action find
entity Q205271
relation P190
type Q13220204
[ANSWERS]
['Q205271', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?f WHERE { resource:Q205271 property:P190 ?f . ?f rdf:type ontology:Q13220204 }
Kaniv Alūksne
Kaniv Alūksne
action filter_type
action find
entity Võru
relation sister city
type second-level administrative country subdivision
['Võru', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?f WHERE { resource:Võru property:sister_city ?f . ?f rdf:type ontology:second-level_administrative_country_subdivision }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7801104
P190
Q56061
USER
Are Tierra Blanca, Zacatecas sister town of those administrative country subdivisions ?
(Q7801104,P190,Q925340) (Q7801104,P190,Q291333)
action is_in
entity prev_answer
action find
entity Q7801104
relation P190
['Q7801104', 'P190', 'Q925340'] ['Q7801104', 'P190', 'Q291333']
ASK WHERE { resource:Q7801104 property:P190 ?j . VALUES ( ?j ) { ( resource:Q925340 ) ( resource:Q291333 ) } }
Tierra Blanca, Zacatecas
action is_in
entity prev_answer
action find
entity Tierra Blanca, Zacatecas
relation sister city
['Tierra Blanca, Zacatecas', 'sister city', 'Kaniv'] ['Tierra Blanca, Zacatecas', 'sister city', 'Alūksne']
ASK WHERE { resource:Tierra_Blanca,_Zacatecas property:sister_city ?j . VALUES ( ?j ) { ( resource:Kaniv ) ( resource:Alūksne ) } }
[]
administrative territorial entity
SYSTEM
NO
(Q7801104,P190,Q925340) (Q7801104,P190,Q291333)
action is_in
entity prev_answer
action find
entity Q7801104
relation P190
[ANSWER]
['Q7801104', 'P190', 'Q925340'] ['Q7801104', 'P190', 'Q291333']
ASK WHERE { resource:Q7801104 property:P190 ?j . VALUES ( ?j ) { ( resource:Q925340 ) ( resource:Q291333 ) } }
No
action is_in
entity prev_answer
action find
entity Tierra Blanca, Zacatecas
relation sister city
['Tierra Blanca, Zacatecas', 'sister city', 'Kaniv'] ['Tierra Blanca, Zacatecas', 'sister city', 'Alūksne']
ASK WHERE { resource:Tierra_Blanca,_Zacatecas property:sister_city ?j . VALUES ( ?j ) { ( resource:Kaniv ) ( resource:Alūksne ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q925340
P19
Q502895
USER
Which people have birthplace at Kaniv ?
(c(Q502895),P19,Q925340)
action filter_type
action find_reverse
entity Q925340
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q925340']
SELECT DISTINCT ?y WHERE { ?y property:P19 resource:Q925340 . ?y rdf:type ontology:Q502895 }
Kaniv
action filter_type
action find_reverse
entity Kaniv
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Kaniv']
SELECT DISTINCT ?y WHERE { ?y property:place_of_birth resource:Kaniv . ?y rdf:type ontology:common_name }
[]
common name
Q4237051 Q4336222 Q1976467
SYSTEM
Samuel Koszka, Timofiej Orendarenko, Oleh Karamushka
Q4237051 Q4336222 Q1976467
(c(Q502895),P19,Q925340)
action filter_type
action find_reverse
entity Q925340
relation P19
type Q502895
[ANSWERS] have birthplace at Kaniv
[{'concept': 'Q502895'}, 'P19', 'Q925340']
SELECT DISTINCT ?y WHERE { ?y property:P19 resource:Q925340 . ?y rdf:type ontology:Q502895 }
Samuel Koszka Timofiej Orendarenko Oleh Karamushka
Samuel Koszka, Timofiej Orendarenko and Oleh Karamushka have birthplace at Kaniv
Samuel Koszka Timofiej Orendarenko Oleh Karamushka
action filter_type
action find_reverse
entity Kaniv
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Kaniv']
SELECT DISTINCT ?y WHERE { ?y property:place_of_birth resource:Kaniv . ?y rdf:type ontology:common_name }
[]