Simple Question (Direct)
Simple Question
Q585892
P57
Q502895
USER
Which person directed Paa ?
(Q585892,P57,c(Q502895))
action filter_type
action find
entity Q585892
relation P57
type Q502895
['Q585892', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . resource:Q585892 property:P57 ?y }
Paa
action filter_type
action find
entity Paa
relation director
type common name
['Paa', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . resource:Paa property:director ?y }
[]
common name
Q7273486
SYSTEM
R. Balki
Q7273486
(Q585892,P57,c(Q502895))
action filter_type
action find
entity Q585892
relation P57
type Q502895
[ANSWER] directed Paa
['Q585892', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . resource:Q585892 property:P57 ?y }
R. Balki
R. Balki directed Paa
R. Balki
action filter_type
action find
entity Paa
relation director
type common name
['Paa', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . resource:Paa property:director ?y }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7273486
P735
Q82799
USER
What is the firstname of that person ?
(Q7273486,P735,c(Q82799))
action filter_type
action find
entity Q7273486
relation P735
type Q82799
['Q7273486', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q82799 . resource:Q7273486 property:P735 ?r }
R. Balki
action filter_type
action find
entity R. Balki
relation given name
type name
['R. Balki', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:name . resource:R._Balki property:given_name ?r }
[]
name
Q19803517
SYSTEM
R.
Q19803517
(Q7273486,P735,c(Q82799))
action filter_type
action find
entity Q7273486
relation P735
type Q82799
The firstname of that person is [ANSWER]
['Q7273486', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q82799 . resource:Q7273486 property:P735 ?r }
R.
The firstname of that person is R.
R.
action filter_type
action find
entity R. Balki
relation given name
type name
['R. Balki', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:name . resource:R._Balki property:given_name ?r }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q82799
USER
How many languages are atleast 78 names in ?
(c(Q82799),P407,c(Q34770))
action count
action atleast
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 78
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { FILTER ( ?m >= 78 ) . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:P407 ?y . ?y rdf:type ontology:Q34770 . ?u rdf:type ontology:Q82799 } GROUP BY ?y } }
action count
action atleast
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 78
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { FILTER ( ?m >= 78 ) . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:language_of_work_or_name ?y . ?y rdf:type ontology:language . ?u rdf:type ontology:name } GROUP BY ?y } }
[]
language name
SYSTEM
2
Q1860 Q1321
(c(Q82799),P407,c(Q34770))
action count
action atleast
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 78
[ANSWER]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { FILTER ( ?m >= 78 ) . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:P407 ?y . ?y rdf:type ontology:Q34770 . ?u rdf:type ontology:Q82799 } GROUP BY ?y } }
English Spanish
2
action count
action atleast
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 78
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { FILTER ( ?m >= 78 ) . { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:language_of_work_or_name ?y . ?y rdf:type ontology:language . ?u rdf:type ontology:name } GROUP BY ?y } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q144
P180
Q82799 Q18783400 Q386724
USER
How many names are expressed in lesser number of genres of sculpture or works than dog ?
(c(Q18783400)|c(Q386724),P180,c(Q82799))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q144
relation P180
type Q18783400
type Q386724
[[{'concept': 'Q18783400'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?z WHERE { VALUES ( ?r ) { ( ontology:Q18783400 ) ( ontology:Q386724 ) } . ?s rdf:type ?r } GROUP BY ?z } . FILTER ( ?u < ?o ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { ?w property:P180 resource:Q144 . { { ?w rdf:type ontology:Q386724 } UNION { ?w rdf:type ontology:Q18783400 } } } } }
dog
action count
action less
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 work
action count
action filter_multi_types
action find_reverse
entity dog
relation depicts
type genre of sculpture
type work
[[{'concept': 'genre of sculpture'}, {'concept': 'work'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?z WHERE { VALUES ( ?r ) { ( ontology:genre_of_sculpture ) ( ontology:work ) } . ?s rdf:type ?r } GROUP BY ?z } . FILTER ( ?u < ?o ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { ?w property:depicts resource:dog . { { ?w rdf:type ontology:work } UNION { ?w rdf:type ontology:genre_of_sculpture } } } } }
[]
name genre of sculpture work
SYSTEM
53
Q13219075 Q134609 Q5 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 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(Q18783400)|c(Q386724),P180,c(Q82799))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q144
relation P180
type Q18783400
type Q386724
[ANSWER]
[[{'concept': 'Q18783400'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?z WHERE { VALUES ( ?r ) { ( ontology:Q18783400 ) ( ontology:Q386724 ) } . ?s rdf:type ?r } GROUP BY ?z } . FILTER ( ?u < ?o ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { ?w property:P180 resource:Q144 . { { ?w rdf:type ontology:Q386724 } UNION { ?w rdf:type ontology:Q18783400 } } } } }
octopus Cynara scolymus human toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly 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
53
action count
action less
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 work
action count
action filter_multi_types
action find_reverse
entity dog
relation depicts
type genre of sculpture
type work
[[{'concept': 'genre of sculpture'}, {'concept': 'work'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?z WHERE { VALUES ( ?r ) { ( ontology:genre_of_sculpture ) ( ontology:work ) } . ?s rdf:type ?r } GROUP BY ?z } . FILTER ( ?u < ?o ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { ?w property:depicts resource:dog . { { ?w rdf:type ontology:work } UNION { ?w rdf:type ontology:genre_of_sculpture } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1347264
P161
Q201658
USER
Which film genre has Richard Boleslawski in its star cast ?
(c(Q201658),P161,Q1347264)
action filter_type
action find_reverse
entity Q1347264
relation P161
type Q201658
[{'concept': 'Q201658'}, 'P161', 'Q1347264']
SELECT DISTINCT ?i WHERE { ?i property:P161 resource:Q1347264 . ?i rdf:type ontology:Q201658 }
Richard Boleslawski
action filter_type
action find_reverse
entity Richard Boleslawski
relation cast member
type film genre
[{'concept': 'film genre'}, 'cast member', 'Richard Boleslawski']
SELECT DISTINCT ?i WHERE { ?i property:cast_member resource:Richard_Boleslawski . ?i rdf:type ontology:film_genre }
[]
film genre
Q1213017
SYSTEM
Die Gezeichneten
Q1213017
(c(Q201658),P161,Q1347264)
action filter_type
action find_reverse
entity Q1347264
relation P161
type Q201658
[ANSWER] has Richard Boleslawski in its star cast
[{'concept': 'Q201658'}, 'P161', 'Q1347264']
SELECT DISTINCT ?i WHERE { ?i property:P161 resource:Q1347264 . ?i rdf:type ontology:Q201658 }
Die Gezeichneten
Die Gezeichneten has Richard Boleslawski in its star cast
Die Gezeichneten
action filter_type
action find_reverse
entity Richard Boleslawski
relation cast member
type film genre
[{'concept': 'film genre'}, 'cast member', 'Richard Boleslawski']
SELECT DISTINCT ?i WHERE { ?i property:cast_member resource:Richard_Boleslawski . ?i rdf:type ontology:film_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7273486
P21
Q290
USER
What is the sex of R. Balki ?
(Q7273486,P21,c(Q290))
action filter_type
action find
entity Q7273486
relation P21
type Q290
['Q7273486', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q7273486 property:P21 ?u . ?u rdf:type ontology:Q290 }
R. Balki
action filter_type
action find
entity R. Balki
relation gender
type sex
['R. Balki', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:R._Balki property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7273486,P21,c(Q290))
action filter_type
action find
entity Q7273486
relation P21
type Q290
The sex of R . Balki is the [ANSWER]
['Q7273486', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q7273486 property:P21 ?u . ?u rdf:type ontology:Q290 }
male
The sex of R . Balki is the male
male
action filter_type
action find
entity R. Balki
relation gender
type sex
['R. Balki', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:R._Balki property:gender ?u . ?u rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q394642
Q290
USER
And how about Ágnes Simon?
(Q394642,P21,c(Q290))
action filter_type
action find
entity Q394642
relation P21
type Q290
['Q394642', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q394642 property:P21 ?u . ?u rdf:type ontology:Q290 }
Ágnes Simon
action filter_type
action find
entity Ágnes Simon
relation gender
type sex
['Ágnes Simon', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Ágnes_Simon property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q394642,P21,c(Q290))
action filter_type
action find
entity Q394642
relation P21
type Q290
[ANSWER]
['Q394642', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q394642 property:P21 ?u . ?u rdf:type ontology:Q290 }
female
female
action filter_type
action find
entity Ágnes Simon
relation gender
type sex
['Ágnes Simon', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Ágnes_Simon property:gender ?u . ?u rdf:type ontology:sex }
[]