Simple Question (Direct)
Simple Question
Q101164
P19
Q2643128
USER
Which district of Kazakhstan was Heinrich Popow born at ?
(Q101164,P19,c(Q2643128))
action filter_type
action find
entity Q101164
relation P19
type Q2643128
['Q101164', 'P19', {'concept': 'Q2643128'}]
SELECT DISTINCT ?t WHERE { resource:Q101164 property:P19 ?t . ?t rdf:type ontology:Q2643128 }
Heinrich Popow
action filter_type
action find
entity Heinrich Popow
relation place of birth
type district of Kazakhstan
['Heinrich Popow', 'place of birth', {'concept': 'district of Kazakhstan'}]
SELECT DISTINCT ?t WHERE { resource:Heinrich_Popow property:place_of_birth ?t . ?t rdf:type ontology:district_of_Kazakhstan }
[]
district of Kazakhstan
Q2283566
SYSTEM
Abay District, Karagandy Province
Q2283566
(Q101164,P19,c(Q2643128))
action filter_type
action find
entity Q101164
relation P19
type Q2643128
Which district of Kazakhstan was Heinrich Popow born at
['Q101164', 'P19', {'concept': 'Q2643128'}]
SELECT DISTINCT ?t WHERE { resource:Q101164 property:P19 ?t . ?t rdf:type ontology:Q2643128 }
Abay District, Karagandy Province
Which district of Kazakhstan was Heinrich Popow born at
Abay District, Karagandy Province
action filter_type
action find
entity Heinrich Popow
relation place of birth
type district of Kazakhstan
['Heinrich Popow', 'place of birth', {'concept': 'district of Kazakhstan'}]
SELECT DISTINCT ?t WHERE { resource:Heinrich_Popow property:place_of_birth ?t . ?t rdf:type ontology:district_of_Kazakhstan }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q101164
P734
Q82799
USER
Who has the surname Heinrich Popow ?
(Q101164,P734,c(Q82799))
action filter_type
action find
entity Q101164
relation P734
type Q82799
['Q101164', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q101164 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Heinrich Popow
action filter_type
action find
entity Heinrich Popow
relation family name
type name
['Heinrich Popow', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:Heinrich_Popow property:family_name ?n . ?n rdf:type ontology:name }
[]
name
Q4372638
SYSTEM
Popov
Q4372638
(Q101164,P734,c(Q82799))
action filter_type
action find
entity Q101164
relation P734
type Q82799
[ANSWER] has the surname Heinrich Popow
['Q101164', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q101164 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Popov
Popov has the surname Heinrich Popow
Popov
action filter_type
action find
entity Heinrich Popow
relation family name
type name
['Heinrich Popow', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:Heinrich_Popow property:family_name ?n . ?n rdf:type ontology:name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7156026
Q82799
USER
And also tell me about Pavol Steiner?
(Q7156026,P734,c(Q82799))
action filter_type
action find
entity Q7156026
relation P734
type Q82799
['Q7156026', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { resource:Q7156026 property:P734 ?e . ?e rdf:type ontology:Q82799 }
Pavol Steiner
action filter_type
action find
entity Pavol Steiner
relation family name
type name
['Pavol Steiner', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { resource:Pavol_Steiner property:family_name ?e . ?e rdf:type ontology:name }
[]
name
Q1719303
SYSTEM
Steiner
Q1719303
(Q7156026,P734,c(Q82799))
action filter_type
action find
entity Q7156026
relation P734
type Q82799
[ANSWER]
['Q7156026', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { resource:Q7156026 property:P734 ?e . ?e rdf:type ontology:Q82799 }
Steiner
Steiner
action filter_type
action find
entity Pavol Steiner
relation family name
type name
['Pavol Steiner', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { resource:Pavol_Steiner property:family_name ?e . ?e rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q792132 Q7156026
P106
Q12737077
USER
Which occupations do Pavol Steiner or Axel Geerken do for a living ?
OR((Q7156026,P106,c(Q12737077)), (Q792132,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q7156026
relation P106
action find
entity Q792132
relation P106
type Q12737077
{'OR': [['Q7156026', 'P106', {'concept': 'Q12737077'}], ['Q792132', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?q WHERE { { ?d property:P106 ?q . VALUES ( ?d ) { ( resource:Q792132 ) ( resource:Q7156026 ) } } . ?q rdf:type ontology:Q12737077 }
Axel Geerken Pavol Steiner
action filter_type
action union
action find
entity Pavol Steiner
relation occupation
action find
entity Axel Geerken
relation occupation
type occupation
{'OR': [['Pavol Steiner', 'occupation', {'concept': 'occupation'}], ['Axel Geerken', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?q WHERE { { ?d property:occupation ?q . VALUES ( ?d ) { ( resource:Axel_Geerken ) ( resource:Pavol_Steiner ) } } . ?q rdf:type ontology:occupation }
[]
occupation
Q17524364 Q13365117
SYSTEM
water polo player, handball player
Q17524364 Q13365117
OR((Q7156026,P106,c(Q12737077)), (Q792132,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q7156026
relation P106
action find
entity Q792132
relation P106
type Q12737077
Pavol Steiner or Axel Geerken do for a living [ANSWERS]
{'OR': [['Q7156026', 'P106', {'concept': 'Q12737077'}], ['Q792132', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?q WHERE { { ?d property:P106 ?q . VALUES ( ?d ) { ( resource:Q792132 ) ( resource:Q7156026 ) } } . ?q rdf:type ontology:Q12737077 }
water polo player handball player
Pavol Steiner or Axel Geerken do for a living water polo player and handball player
water polo player handball player
action filter_type
action union
action find
entity Pavol Steiner
relation occupation
action find
entity Axel Geerken
relation occupation
type occupation
{'OR': [['Pavol Steiner', 'occupation', {'concept': 'occupation'}], ['Axel Geerken', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?q WHERE { { ?d property:occupation ?q . VALUES ( ?d ) { ( resource:Axel_Geerken ) ( resource:Pavol_Steiner ) } } . ?q rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1716978 Q101164
P27
Q1048835
USER
Which political territories are Heinrich Popow and Jürgen Banscherus an inhabitant of ?
AND((Q101164,P27,c(Q1048835)), (Q1716978,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q101164
relation P27
action find
entity Q1716978
relation P27
type Q1048835
{'AND': [['Q101164', 'P27', {'concept': 'Q1048835'}], ['Q1716978', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?a WHERE { resource:Q101164 property:P27 ?a . resource:Q1716978 property:P27 ?a . ?a rdf:type ontology:Q1048835 }
Jürgen Banscherus Heinrich Popow
action filter_type
action intersection
action find
entity Heinrich Popow
relation country of citizenship
action find
entity Jürgen Banscherus
relation country of citizenship
type political territorial entity
{'AND': [['Heinrich Popow', 'country of citizenship', {'concept': 'political territorial entity'}], ['Jürgen Banscherus', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?a WHERE { resource:Heinrich_Popow property:country_of_citizenship ?a . resource:Jürgen_Banscherus property:country_of_citizenship ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q101164,P27,c(Q1048835)), (Q1716978,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q101164
relation P27
action find
entity Q1716978
relation P27
type Q1048835
[ANSWER] is Heinrich Popow and Jürgen Banscherus an inhabitant of
{'AND': [['Q101164', 'P27', {'concept': 'Q1048835'}], ['Q1716978', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?a WHERE { resource:Q101164 property:P27 ?a . resource:Q1716978 property:P27 ?a . ?a rdf:type ontology:Q1048835 }
Germany
Germany is Heinrich Popow and Jürgen Banscherus an inhabitant of
Germany
action filter_type
action intersection
action find
entity Heinrich Popow
relation country of citizenship
action find
entity Jürgen Banscherus
relation country of citizenship
type political territorial entity
{'AND': [['Heinrich Popow', 'country of citizenship', {'concept': 'political territorial entity'}], ['Jürgen Banscherus', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?a WHERE { resource:Heinrich_Popow property:country_of_citizenship ?a . resource:Jürgen_Banscherus property:country_of_citizenship ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1716978
P937
Q56061
USER
What are the locations where Jürgen Banscherus worked ?
(Q183,P937,c(Q56061))
action filter_type
action find
entity Q1716978
relation P937
type Q56061
['Q183', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q1716978 property:P937 ?p . ?p rdf:type ontology:Q56061 }
Jürgen Banscherus
action filter_type
action find
entity Jürgen Banscherus
relation work location
type administrative territorial entity
['Germany', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Jürgen_Banscherus property:work_location ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3764 Q586
SYSTEM
Witten, Bonn
Q3764 Q586
(Q183,P937,c(Q56061))
action filter_type
action find
entity Q1716978
relation P937
type Q56061
The locations Jürgen Banscherus worked are in [ANSWERS]
['Q183', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q1716978 property:P937 ?p . ?p rdf:type ontology:Q56061 }
Witten Bonn
The locations Jürgen Banscherus worked are in Witten and Bonn
Witten Bonn
action filter_type
action find
entity Jürgen Banscherus
relation work location
type administrative territorial entity
['Germany', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Jürgen_Banscherus property:work_location ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q24067392
P180
Q82799 Q18783400 Q17335294
USER
Which names are depicted in greater number of genres of sculpture and coats of arms than Boy ?
(c(Q18783400)|c(Q17335294),P180,c(Q82799))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q24067392
relation P180
type Q18783400
type Q17335294
[[{'concept': 'Q18783400'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?x > ?c ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:P180 resource:Q24067392 . { VALUES ( ?j ) { ( ontology:Q18783400 ) ( ontology:Q17335294 ) } . ?s rdf:type ?j } } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) ?w WHERE { ?p rdf:type ?r . VALUES ( ?r ) { ( ontology:Q18783400 ) ( ontology:Q17335294 ) } } GROUP BY ?w } }
Boy
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity Boy
relation depicts
type genre of sculpture
type flag or coat of arms
[[{'concept': 'genre of sculpture'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?x > ?c ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:depicts resource:Boy . { VALUES ( ?j ) { ( ontology:genre_of_sculpture ) ( ontology:flag_or_coat_of_arms ) } . ?s rdf:type ?j } } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) ?w WHERE { ?p rdf:type ?r . VALUES ( ?r ) { ( ontology:genre_of_sculpture ) ( ontology:flag_or_coat_of_arms ) } } GROUP BY ?w } }
[]
name genre of sculpture flag or coat of arms
Q144 Q726 Q43115
SYSTEM
dog, horse, saint
Q726 Q2092297 Q144 Q43115
(c(Q18783400)|c(Q17335294),P180,c(Q82799))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q24067392
relation P180
type Q18783400
type Q17335294
[ANSWERS] are depicted in greater number of genres of sculpture and coats of arms than Boy
[[{'concept': 'Q18783400'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?x > ?c ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:P180 resource:Q24067392 . { VALUES ( ?j ) { ( ontology:Q18783400 ) ( ontology:Q17335294 ) } . ?s rdf:type ?j } } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) ?w WHERE { ?p rdf:type ?r . VALUES ( ?r ) { ( ontology:Q18783400 ) ( ontology:Q17335294 ) } } GROUP BY ?w } }
horse eagle dog saint
Dog, horse and saint are depicted in greater number of genres of sculpture and coats of arms than Boy
dog horse saint
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity Boy
relation depicts
type genre of sculpture
type flag or coat of arms
[[{'concept': 'genre of sculpture'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?x > ?c ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:depicts resource:Boy . { VALUES ( ?j ) { ( ontology:genre_of_sculpture ) ( ontology:flag_or_coat_of_arms ) } . ?s rdf:type ?j } } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) ?w WHERE { ?p rdf:type ?r . VALUES ( ?r ) { ( ontology:genre_of_sculpture ) ( ontology:flag_or_coat_of_arms ) } } GROUP BY ?w } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q16529344
P180
Q82799 Q18783400 Q17335294
USER
And also tell me about goose?
(c(Q18783400)|c(Q17335294),P180,c(Q82799))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q16529344
relation P180
type Q18783400
type Q17335294
[[{'concept': 'Q18783400'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) ?h WHERE { VALUES ( ?i ) { ( ontology:Q18783400 ) ( ontology:Q17335294 ) } . ?e rdf:type ?i } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { ?p property:P180 resource:Q16529344 . { { ?p rdf:type ontology:Q18783400 } UNION { ?p rdf:type ontology:Q17335294 } } } } . FILTER ( ?k > ?w ) }
goose
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity goose
relation depicts
type genre of sculpture
type flag or coat of arms
[[{'concept': 'genre of sculpture'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) ?h WHERE { VALUES ( ?i ) { ( ontology:genre_of_sculpture ) ( ontology:flag_or_coat_of_arms ) } . ?e rdf:type ?i } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { ?p property:depicts resource:goose . { { ?p rdf:type ontology:genre_of_sculpture } UNION { ?p rdf:type ontology:flag_or_coat_of_arms } } } } . FILTER ( ?k > ?w ) }
[]
name genre of sculpture flag or coat of arms
Q144 Q726 Q43115
SYSTEM
dog, horse, saint
Q726 Q2092297 Q144 Q43115
(c(Q18783400)|c(Q17335294),P180,c(Q82799))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q16529344
relation P180
type Q18783400
type Q17335294
[ANSWERS]
[[{'concept': 'Q18783400'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) ?h WHERE { VALUES ( ?i ) { ( ontology:Q18783400 ) ( ontology:Q17335294 ) } . ?e rdf:type ?i } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { ?p property:P180 resource:Q16529344 . { { ?p rdf:type ontology:Q18783400 } UNION { ?p rdf:type ontology:Q17335294 } } } } . FILTER ( ?k > ?w ) }
horse eagle dog saint
dog horse saint
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity goose
relation depicts
type genre of sculpture
type flag or coat of arms
[[{'concept': 'genre of sculpture'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) ?h WHERE { VALUES ( ?i ) { ( ontology:genre_of_sculpture ) ( ontology:flag_or_coat_of_arms ) } . ?e rdf:type ?i } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { ?p property:depicts resource:goose . { { ?p rdf:type ontology:genre_of_sculpture } UNION { ?p rdf:type ontology:flag_or_coat_of_arms } } } } . FILTER ( ?k > ?w ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q82799 Q3305213 Q340169
USER
Which names are expressed in approximately 6 paintings and medias ?
(c(Q3305213)|c(Q340169),P180,c(Q82799))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
value 6
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?q WHERE { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } } GROUP BY ?q } . FILTER ( ?y = 6 ) }
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type painting
action find_reverse_tuple_counts
relation depicts
type name
type media
value 6
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?q WHERE { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:painting ) ( ontology:media ) } } GROUP BY ?q } . FILTER ( ?y = 6 ) }
[]
name painting media
Q144 Q876933 Q7368
SYSTEM
dog, magi, Ovis aries
Q830 Q7368 Q144 Q3537778 Q876933 Q7378
(c(Q3305213)|c(Q340169),P180,c(Q82799))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
value 6
[ANSWERS] are expressed in approximately 6 paintings and medias
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?q WHERE { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } } GROUP BY ?q } . FILTER ( ?y = 6 ) }
cattle Ovis aries dog donkeys magi elephant
Dog, magi and Ovis aries are expressed in approximately 6 paintings and medias
dog magi Ovis aries
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type painting
action find_reverse_tuple_counts
relation depicts
type name
type media
value 6
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?q WHERE { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:painting ) ( ontology:media ) } } GROUP BY ?q } . FILTER ( ?y = 6 ) }
[]