Simple Question (Direct)
Simple Question
Q2165724
P21
Q290
USER
What is the sex of Ronald Reng ?
(Q2165724,P21,c(Q290))
action filter_type
action find
entity Q2165724
relation P21
type Q290
['Q2165724', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q290 . resource:Q2165724 property:P21 ?g }
Ronald Reng
action filter_type
action find
entity Ronald Reng
relation gender
type sex
['Ronald Reng', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sex . resource:Ronald_Reng property:gender ?g }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2165724,P21,c(Q290))
action filter_type
action find
entity Q2165724
relation P21
type Q290
The sex of Ronald Reng is the [ANSWER]
['Q2165724', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q290 . resource:Q2165724 property:P21 ?g }
male
The sex of Ronald Reng is the male
male
action filter_type
action find
entity Ronald Reng
relation gender
type sex
['Ronald Reng', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sex . resource:Ronald_Reng property:gender ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2165724
P50
Q2342494
USER
Which collectable is written by Ronald Reng ?
(c(Q2342494),P50,Q2165724)
action filter_type
action find_reverse
entity Q2165724
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q2165724']
SELECT DISTINCT ?z WHERE { ?z property:P50 resource:Q2165724 . ?z rdf:type ontology:Q2342494 }
Ronald Reng
action filter_type
action find_reverse
entity Ronald Reng
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Ronald Reng']
SELECT DISTINCT ?z WHERE { ?z property:author resource:Ronald_Reng . ?z rdf:type ontology:collectable }
[]
collectable
Q16843322
SYSTEM
A Life too Short
Q16843322
(c(Q2342494),P50,Q2165724)
action filter_type
action find_reverse
entity Q2165724
relation P50
type Q2342494
[ANSWER] is written by Ronald Reng
[{'concept': 'Q2342494'}, 'P50', 'Q2165724']
SELECT DISTINCT ?z WHERE { ?z property:P50 resource:Q2165724 . ?z rdf:type ontology:Q2342494 }
A Life too Short
A Life too Short is written by Ronald Reng
A Life too Short
action filter_type
action find_reverse
entity Ronald Reng
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Ronald Reng']
SELECT DISTINCT ?z WHERE { ?z property:author resource:Ronald_Reng . ?z rdf:type ontology:collectable }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2165724
P19
Q515
USER
Which city was Ronald Reng born at ?
(Q2165724,P19,c(Q515))
action filter_type
action find
entity Q2165724
relation P19
type Q515
['Q2165724', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { resource:Q2165724 property:P19 ?c . ?c rdf:type ontology:Q515 }
Ronald Reng
action filter_type
action find
entity Ronald Reng
relation place of birth
type city
['Ronald Reng', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { resource:Ronald_Reng property:place_of_birth ?c . ?c rdf:type ontology:city }
[]
city
Q1794
SYSTEM
Frankfurt
Q1794
(Q2165724,P19,c(Q515))
action filter_type
action find
entity Q2165724
relation P19
type Q515
Ronald Reng was born in [ANSWER]
['Q2165724', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { resource:Q2165724 property:P19 ?c . ?c rdf:type ontology:Q515 }
Frankfurt
Ronald Reng was born in Frankfurt
Frankfurt
action filter_type
action find
entity Ronald Reng
relation place of birth
type city
['Ronald Reng', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { resource:Ronald_Reng property:place_of_birth ?c . ?c rdf:type ontology:city }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q23057722
Q515
USER
And how about Emanuel Spitzer?
(Q23057722,P19,c(Q515))
action filter_type
action find
entity Q23057722
relation P19
type Q515
['Q23057722', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { resource:Q23057722 property:P19 ?q . ?q rdf:type ontology:Q515 }
Emanuel Spitzer
action filter_type
action find
entity Emanuel Spitzer
relation place of birth
type city
['Emanuel Spitzer', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { resource:Emanuel_Spitzer property:place_of_birth ?q . ?q rdf:type ontology:city }
[]
city
Q214945
SYSTEM
Pápa
Q214945
(Q23057722,P19,c(Q515))
action filter_type
action find
entity Q23057722
relation P19
type Q515
[ANSWER]
['Q23057722', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { resource:Q23057722 property:P19 ?q . ?q rdf:type ontology:Q515 }
Pápa
Pápa
action filter_type
action find
entity Emanuel Spitzer
relation place of birth
type city
['Emanuel Spitzer', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { resource:Emanuel_Spitzer property:place_of_birth ?q . ?q rdf:type ontology:city }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q214945 Q3232 Q728965
P190
Q56061
USER
Is that city a sister city of Schwetzingen and Lučenec ?
(Q214945,P190,Q3232) (Q214945,P190,Q728965)
action is_in
entity Q214945
action intersection
action find_reverse
entity Q3232
relation P190
action find_reverse
entity Q728965
relation P190
['Q214945', 'P190', 'Q3232'] ['Q214945', 'P190', 'Q728965']
ASK WHERE { resource:Q214945 property:P190 resource:Q728965 . resource:Q214945 property:P190 resource:Q3232 }
Pápa Schwetzingen Lučenec
action is_in
entity Pápa
action intersection
action find_reverse
entity Schwetzingen
relation sister city
action find_reverse
entity Lučenec
relation sister city
['Pápa', 'sister city', 'Schwetzingen'] ['Pápa', 'sister city', 'Lučenec']
ASK WHERE { resource:Pápa property:sister_city resource:Lučenec . resource:Pápa property:sister_city resource:Schwetzingen }
[]
administrative territorial entity
SYSTEM
YES
(Q214945,P190,Q3232) (Q214945,P190,Q728965)
action is_in
entity Q214945
action intersection
action find_reverse
entity Q3232
relation P190
action find_reverse
entity Q728965
relation P190
[ANSWER]
['Q214945', 'P190', 'Q3232'] ['Q214945', 'P190', 'Q728965']
ASK WHERE { resource:Q214945 property:P190 resource:Q728965 . resource:Q214945 property:P190 resource:Q3232 }
Yes
action is_in
entity Pápa
action intersection
action find_reverse
entity Schwetzingen
relation sister city
action find_reverse
entity Lučenec
relation sister city
['Pápa', 'sister city', 'Schwetzingen'] ['Pápa', 'sister city', 'Lučenec']
ASK WHERE { resource:Pápa property:sister_city resource:Lučenec . resource:Pápa property:sister_city resource:Schwetzingen }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1794
P47
Q1048835 Q515
USER
How many political territories or cities are bordered by Frankfurt ?
(c(Q1048835),P47,Q1794) (c(Q515),P47,Q1794)
action count
action union
action filter_type
action find_reverse
entity Q1794
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q1794
relation P47
type Q515
[{'concept': 'Q1048835'}, 'P47', 'Q1794'] [{'concept': 'Q515'}, 'P47', 'Q1794']
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { ?e rdf:type ?a . VALUES ( ?a ) { ( ontology:Q1048835 ) ( ontology:Q515 ) } }
Frankfurt
action count
action union
action filter_type
action find_reverse
entity Frankfurt
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Frankfurt
relation shares border with
type city
[{'concept': 'political territorial entity'}, 'shares border with', 'Frankfurt'] [{'concept': 'city'}, 'shares border with', 'Frankfurt']
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { ?e rdf:type ?a . VALUES ( ?a ) { ( ontology:political_territorial_entity ) ( ontology:city ) } }
[]
political territorial entity city
SYSTEM
7
Q7908 Q7909 Q3042 Q7914 Q7912 Q7911 Q7910
(c(Q1048835),P47,Q1794) (c(Q515),P47,Q1794)
action count
action union
action filter_type
action find_reverse
entity Q1794
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q1794
relation P47
type Q515
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q1794'] [{'concept': 'Q515'}, 'P47', 'Q1794']
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { ?e rdf:type ?a . VALUES ( ?a ) { ( ontology:Q1048835 ) ( ontology:Q515 ) } }
Hochtaunuskreis Main-Taunus-Kreis Offenbach am Main Groß-Gerau Offenbach Main-Kinzig-Kreis Wetteraukreis
7
action count
action union
action filter_type
action find_reverse
entity Frankfurt
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Frankfurt
relation shares border with
type city
[{'concept': 'political territorial entity'}, 'shares border with', 'Frankfurt'] [{'concept': 'city'}, 'shares border with', 'Frankfurt']
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { ?e rdf:type ?a . VALUES ( ?a ) { ( ontology:political_territorial_entity ) ( ontology:city ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q2165724
P27
Q1048835
USER
How many political territories are Ronald Reng a civilian of ?
(Q2165724,P27,c(Q1048835))
action count
action filter_type
action find
entity Q2165724
relation P27
type Q1048835
['Q2165724', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { resource:Q2165724 property:P27 ?i . ?i rdf:type ontology:Q1048835 }
Ronald Reng
action count
action filter_type
action find
entity Ronald Reng
relation country of citizenship
type political territorial entity
['Ronald Reng', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { resource:Ronald_Reng property:country_of_citizenship ?i . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q183
(Q2165724,P27,c(Q1048835))
action count
action filter_type
action find
entity Q2165724
relation P27
type Q1048835
[ANSWER]
['Q2165724', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { resource:Q2165724 property:P27 ?i . ?i rdf:type ontology:Q1048835 }
Germany
1
action count
action filter_type
action find
entity Ronald Reng
relation country of citizenship
type political territorial entity
['Ronald Reng', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { resource:Ronald_Reng property:country_of_citizenship ?i . ?i rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q1904498
Q1048835
USER
And what about Martin Lutz?
(Q1904498,P27,c(Q1048835))
action count
action filter_type
action find
entity Q1904498
relation P27
type Q1048835
['Q1904498', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { resource:Q1904498 property:P27 ?b . ?b rdf:type ontology:Q1048835 }
Martin Lutz
action count
action filter_type
action find
entity Martin Lutz
relation country of citizenship
type political territorial entity
['Martin Lutz', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { resource:Martin_Lutz property:country_of_citizenship ?b . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
(Q1904498,P27,c(Q1048835))
action count
action filter_type
action find
entity Q1904498
relation P27
type Q1048835
[ANSWER]
['Q1904498', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { resource:Q1904498 property:P27 ?b . ?b rdf:type ontology:Q1048835 }
1
action count
action filter_type
action find
entity Martin Lutz
relation country of citizenship
type political territorial entity
['Martin Lutz', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { resource:Martin_Lutz property:country_of_citizenship ?b . ?b rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P190
Q515 Q515
USER
Which cities are partner town of atleast 10 cities ?
(c(Q515),P190,c(Q515))
action atleast
action find_tuple_counts
relation P190
type Q515
type Q515
value 10
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?b ) WHERE { ?h property:P190 ?u . ?h rdf:type ontology:Q515 . ?u rdf:type ontology:Q515 } GROUP BY ?h } . FILTER ( ?b >= 10 ) }
action atleast
action find_tuple_counts
relation sister city
type city
type city
value 10
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?b ) WHERE { ?h property:sister_city ?u . ?h rdf:type ontology:city . ?u rdf:type ontology:city } GROUP BY ?h } . FILTER ( ?b >= 10 ) }
[]
city city
Q205922 Q42622
SYSTEM
Qiqihar, Suzhou
Q205922 Q42622
(c(Q515),P190,c(Q515))
action atleast
action find_tuple_counts
relation P190
type Q515
type Q515
value 10
[ANSWERS] are partner town of atleast 10 cities
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?b ) WHERE { ?h property:P190 ?u . ?h rdf:type ontology:Q515 . ?u rdf:type ontology:Q515 } GROUP BY ?h } . FILTER ( ?b >= 10 ) }
Qiqihar Suzhou
Qiqihar and Suzhou are partner town of atleast 10 cities
Qiqihar Suzhou
action atleast
action find_tuple_counts
relation sister city
type city
type city
value 10
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?b ) WHERE { ?h property:sister_city ?u . ?h rdf:type ontology:city . ?u rdf:type ontology:city } GROUP BY ?h } . FILTER ( ?b >= 10 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q27654513 Q1904498
P19 P17
Q15617994
USER
Which administrative territories were Martin Lutz born at or do 1998-1999 Cyprus Volleyball Division 1 belong to ?
OR((Q1904498,P19,c(Q15617994)), (Q27654513,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1904498
relation P19
action find
entity Q27654513
relation P17
type Q15617994
{'OR': [['Q1904498', 'P19', {'concept': 'Q15617994'}], ['Q27654513', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . { { resource:Q27654513 property:P17 ?k } UNION { resource:Q1904498 property:P19 ?k } } }
1998-1999 Cyprus Volleyball Division 1 Martin Lutz
action filter_type
action union
action find
entity Martin Lutz
relation place of birth
action find
entity 1998-1999 Cyprus Volleyball Division 1
relation country
type designation for an administrative territorial entity
{'OR': [['Martin Lutz', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['1998-1999 Cyprus Volleyball Division 1', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:1998-1999_Cyprus_Volleyball_Division_1 property:country ?k } UNION { resource:Martin_Lutz property:place_of_birth ?k } } }
[]
designation for an administrative territorial entity
Q80597 Q229
SYSTEM
Rheinmünster, Cyprus
Q80597 Q229
OR((Q1904498,P19,c(Q15617994)), (Q27654513,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1904498
relation P19
action find
entity Q27654513
relation P17
type Q15617994
Martin Lutz were born belong to the [ANSWERS]
{'OR': [['Q1904498', 'P19', {'concept': 'Q15617994'}], ['Q27654513', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . { { resource:Q27654513 property:P17 ?k } UNION { resource:Q1904498 property:P19 ?k } } }
Rheinmünster Cyprus
Martin Lutz were born belong to the Rheinmünster and Cyprus
Rheinmünster Cyprus
action filter_type
action union
action find
entity Martin Lutz
relation place of birth
action find
entity 1998-1999 Cyprus Volleyball Division 1
relation country
type designation for an administrative territorial entity
{'OR': [['Martin Lutz', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['1998-1999 Cyprus Volleyball Division 1', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:1998-1999_Cyprus_Volleyball_Division_1 property:country ?k } UNION { resource:Martin_Lutz property:place_of_birth ?k } } }
[]