Simple Question (Direct)
Simple Question
Q1706699
P734
Q82799
USER
Who has the surname Joseph Buck ?
(Q1706699,P734,c(Q82799))
action filter_type
action find
entity Q1706699
relation P734
type Q82799
['Q1706699', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { resource:Q1706699 property:P734 ?g . ?g rdf:type ontology:Q82799 }
Joseph Buck
action filter_type
action find
entity Joseph Buck
relation family name
type name
['Joseph Buck', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { resource:Joseph_Buck property:family_name ?g . ?g rdf:type ontology:name }
[]
name
Q14915267
SYSTEM
Buck
Q14915267
(Q1706699,P734,c(Q82799))
action filter_type
action find
entity Q1706699
relation P734
type Q82799
[ANSWER] has the surname Joseph [ANSWER]
['Q1706699', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { resource:Q1706699 property:P734 ?g . ?g rdf:type ontology:Q82799 }
Buck
Buck has the surname Joseph Buck
Buck
action filter_type
action find
entity Joseph Buck
relation family name
type name
['Joseph Buck', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { resource:Joseph_Buck property:family_name ?g . ?g rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1706699
P21
Q290
USER
Which sex does Joseph Buck have ?
(Q1706699,P21,c(Q290))
action filter_type
action find
entity Q1706699
relation P21
type Q290
['Q1706699', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q1706699 property:P21 ?q . ?q rdf:type ontology:Q290 }
Joseph Buck
action filter_type
action find
entity Joseph Buck
relation gender
type sex
['Joseph Buck', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Joseph_Buck property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1706699,P21,c(Q290))
action filter_type
action find
entity Q1706699
relation P21
type Q290
Joseph Buck has a [ANSWER]
['Q1706699', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q1706699 property:P21 ?q . ?q rdf:type ontology:Q290 }
male
Joseph Buck has a male
male
action filter_type
action find
entity Joseph Buck
relation gender
type sex
['Joseph Buck', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Joseph_Buck property:gender ?q . ?q rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1561307
Q290
USER
And also tell me about Günther Bahr?
(Q1561307,P21,c(Q290))
action filter_type
action find
entity Q1561307
relation P21
type Q290
['Q1561307', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q290 . resource:Q1561307 property:P21 ?n }
Günther Bahr
action filter_type
action find
entity Günther Bahr
relation gender
type sex
['Günther Bahr', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sex . resource:Günther_Bahr property:gender ?n }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1561307,P21,c(Q290))
action filter_type
action find
entity Q1561307
relation P21
type Q290
[ANSWER]
['Q1561307', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q290 . resource:Q1561307 property:P21 ?n }
male
male
action filter_type
action find
entity Günther Bahr
relation gender
type sex
['Günther Bahr', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sex . resource:Günther_Bahr property:gender ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1561307
P106
Q12737077
USER
What does that person do for a living ?
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q1561307
relation P106
type Q12737077
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q1561307 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
Günther Bahr
action filter_type
action find
entity Günther Bahr
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Günther_Bahr property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q2722764
SYSTEM
radio personality
Q2722764
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q1561307
relation P106
type Q12737077
That person does a [ANSWER] for a living
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q1561307 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
radio personality
That person does a radio personality for a living
radio personality
action filter_type
action find
entity Günther Bahr
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Günther_Bahr property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P144
Q502895 Q15850590 Q2342494
USER
How many people are atleast 2 theatrical genres and collectables a fork of ?
(c(Q15850590)|c(Q2342494),P144,c(Q502895))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q15850590
action find_reverse_tuple_counts
relation P144
type Q502895
type Q2342494
value 2
[[{'concept': 'Q15850590'}, {'concept': 'Q2342494'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) ?e WHERE { VALUES ( ?m ) { ( ontology:Q15850590 ) ( ontology:Q2342494 ) } . ?p rdf:type ?m } GROUP BY ?e } . FILTER ( ?z >= 2 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation based on
type common name
type theatrical genre
action find_reverse_tuple_counts
relation based on
type common name
type collectable
value 2
[[{'concept': 'theatrical genre'}, {'concept': 'collectable'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) ?e WHERE { VALUES ( ?m ) { ( ontology:theatrical_genre ) ( ontology:collectable ) } . ?p rdf:type ?m } GROUP BY ?e } . FILTER ( ?z >= 2 ) }
[]
common name theatrical genre collectable
SYSTEM
3
Q298920 Q276615 Q184935
(c(Q15850590)|c(Q2342494),P144,c(Q502895))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q15850590
action find_reverse_tuple_counts
relation P144
type Q502895
type Q2342494
value 2
[ANSWER]
[[{'concept': 'Q15850590'}, {'concept': 'Q2342494'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) ?e WHERE { VALUES ( ?m ) { ( ontology:Q15850590 ) ( ontology:Q2342494 ) } . ?p rdf:type ?m } GROUP BY ?e } . FILTER ( ?z >= 2 ) }
Charles M. Schulz Gabriela Preissová Mihai Eminescu
3
action count
action atleast
action union
action find_reverse_tuple_counts
relation based on
type common name
type theatrical genre
action find_reverse_tuple_counts
relation based on
type common name
type collectable
value 2
[[{'concept': 'theatrical genre'}, {'concept': 'collectable'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) ?e WHERE { VALUES ( ?m ) { ( ontology:theatrical_genre ) ( ontology:collectable ) } . ?p rdf:type ?m } GROUP BY ?e } . FILTER ( ?z >= 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q82799 Q838948 Q386724
USER
Which names are expressed in atmost 192 works of art and works ?
(c(Q838948)|c(Q386724),P180,c(Q82799))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q838948
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
value 192
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?h WHERE { { ?v property:P180 ?h . ?h rdf:type ontology:Q82799 . ?v rdf:type ontology:Q838948 } UNION { ?v property:P180 ?h . ?h rdf:type ontology:Q82799 . ?v rdf:type ontology:Q386724 } } GROUP BY ?h } . FILTER ( ?e <= 192 ) }
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type name
type work of art
action find_reverse_tuple_counts
relation depicts
type name
type work
value 192
[[{'concept': 'work of art'}, {'concept': 'work'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?h WHERE { { ?v property:depicts ?h . ?h rdf:type ontology:name . ?v rdf:type ontology:work_of_art } UNION { ?v property:depicts ?h . ?h rdf:type ontology:name . ?v rdf:type ontology:work } } GROUP BY ?h } . FILTER ( ?e <= 192 ) }
[]
name work of art work
Q144 Q1807269 Q876933
SYSTEM
dog, leek, magi
Q13219075 Q134609 Q5 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q144 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1367 Q1192868 Q9394 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q7378 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q152 Q5070208 Q859257 Q10968813
(c(Q838948)|c(Q386724),P180,c(Q82799))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q838948
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
value 192
[ANSWERS] are expressed in atmost 192 works of art and works
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?h WHERE { { ?v property:P180 ?h . ?h rdf:type ontology:Q82799 . ?v rdf:type ontology:Q838948 } UNION { ?v property:P180 ?h . ?h rdf:type ontology:Q82799 . ?v rdf:type ontology:Q386724 } } GROUP BY ?h } . FILTER ( ?e <= 192 ) }
octopus Cynara scolymus human toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly dog trout cattle goose Boy cannoneer leek peacock fox raven hawk frog donkeys whale monkey clam rabbit reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon elephant vulture pheasant thistle snail Scipio locust wasp fish kangaroo fly jay
Dog, leek and magi are expressed in atmost 192 works of art and works
dog leek magi
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type name
type work of art
action find_reverse_tuple_counts
relation depicts
type name
type work
value 192
[[{'concept': 'work of art'}, {'concept': 'work'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?h WHERE { { ?v property:depicts ?h . ?h rdf:type ontology:name . ?v rdf:type ontology:work_of_art } UNION { ?v property:depicts ?h . ?h rdf:type ontology:name . ?v rdf:type ontology:work } } GROUP BY ?h } . FILTER ( ?e <= 192 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q82799
USER
How many languages are atmost 497 names in ?
(c(Q82799),P407,c(Q34770))
action count
action atmost
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 497
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:P407 ?n . ?o rdf:type ontology:Q82799 . ?n rdf:type ontology:Q34770 } GROUP BY ?n } . FILTER ( ?a <= 497 ) }
action count
action atmost
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 497
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:language_of_work_or_name ?n . ?o rdf:type ontology:name . ?n rdf:type ontology:language } GROUP BY ?n } . FILTER ( ?a <= 497 ) }
[]
language name
SYSTEM
28
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799),P407,c(Q34770))
action count
action atmost
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 497
[ANSWER]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:P407 ?n . ?o rdf:type ontology:Q82799 . ?n rdf:type ontology:Q34770 } GROUP BY ?n } . FILTER ( ?a <= 497 ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
28
action count
action atmost
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 497
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:language_of_work_or_name ?n . ?o rdf:type ontology:name . ?n rdf:type ontology:language } GROUP BY ?n } . FILTER ( ?a <= 497 ) }
[]