Simple Question (Direct)
Simple Question
Q20675968
P735
Q82799
USER
What is forename of Reece Beckles ?
(Q20675968,P735,c(Q82799))
action filter_type
action find
entity Q20675968
relation P735
type Q82799
['Q20675968', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q20675968 property:P735 ?u . ?u rdf:type ontology:Q82799 }
Reece Beckles
action filter_type
action find
entity Reece Beckles
relation given name
type name
['Reece Beckles', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Reece_Beckles property:given_name ?u . ?u rdf:type ontology:name }
[]
name
Q20683657
SYSTEM
Reece
Q20683657
(Q20675968,P735,c(Q82799))
action filter_type
action find
entity Q20675968
relation P735
type Q82799
Forename of [ANSWER] Beckles is of [ANSWER]
['Q20675968', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q20675968 property:P735 ?u . ?u rdf:type ontology:Q82799 }
Reece
Forename of Reece Beckles is of Reece
Reece
action filter_type
action find
entity Reece Beckles
relation given name
type name
['Reece Beckles', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Reece_Beckles property:given_name ?u . ?u rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20675968
P21
Q290
USER
What is the sex of Reece Beckles ?
(Q20675968,P21,c(Q290))
action filter_type
action find
entity Q20675968
relation P21
type Q290
['Q20675968', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q20675968 property:P21 ?b . ?b rdf:type ontology:Q290 }
Reece Beckles
action filter_type
action find
entity Reece Beckles
relation gender
type sex
['Reece Beckles', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Reece_Beckles property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q20675968,P21,c(Q290))
action filter_type
action find
entity Q20675968
relation P21
type Q290
The sex of Reece Beckles is the [ANSWER]
['Q20675968', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q20675968 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
The sex of Reece Beckles is the male
male
action filter_type
action find
entity Reece Beckles
relation gender
type sex
['Reece Beckles', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Reece_Beckles property:gender ?b . ?b rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q8436 Q874405 Q82799
USER
Which names are a portion of max number of families and social groups ?
(c(Q82799),P361,c(Q8436)|c(Q874405))
action argmax
action union
action find_tuple_counts
relation P361
type Q82799
type Q8436
action find_tuple_counts
relation P361
type Q82799
type Q874405
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q8436'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) ?u WHERE { { ?u property:P361 ?t . ?u rdf:type ontology:Q82799 . ?t rdf:type ontology:Q8436 } UNION { ?u property:P361 ?t . ?u rdf:type ontology:Q82799 . ?t rdf:type ontology:Q874405 } } GROUP BY ?u } } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) ?n WHERE { { ?n property:P361 ?b . ?n rdf:type ontology:Q82799 . ?b rdf:type ontology:Q8436 } UNION { ?n property:P361 ?b . ?n rdf:type ontology:Q82799 . ?b rdf:type ontology:Q874405 } } GROUP BY ?n } . FILTER ( ?i = ?h ) }
action argmax
action union
action find_tuple_counts
relation part of
type name
type family
action find_tuple_counts
relation part of
type name
type social group
[{'concept': 'name'}, 'part of', [{'concept': 'family'}, {'concept': 'social group'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) ?u WHERE { { ?u property:part_of ?t . ?u rdf:type ontology:name . ?t rdf:type ontology:family } UNION { ?u property:part_of ?t . ?u rdf:type ontology:name . ?t rdf:type ontology:social_group } } GROUP BY ?u } } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) ?n WHERE { { ?n property:part_of ?b . ?n rdf:type ontology:name . ?b rdf:type ontology:family } UNION { ?n property:part_of ?b . ?n rdf:type ontology:name . ?b rdf:type ontology:social_group } } GROUP BY ?n } . FILTER ( ?i = ?h ) }
[]
family social group name
Q235598 Q742083 Q1557998
SYSTEM
Piso, Princes of Paliano, Gyalwang Drukpa
Q235598 Q742083 Q1557998
(c(Q82799),P361,c(Q8436)|c(Q874405))
action argmax
action union
action find_tuple_counts
relation P361
type Q82799
type Q8436
action find_tuple_counts
relation P361
type Q82799
type Q874405
[ANSWERS] are a portion of max number of families and social groups
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q8436'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) ?u WHERE { { ?u property:P361 ?t . ?u rdf:type ontology:Q82799 . ?t rdf:type ontology:Q8436 } UNION { ?u property:P361 ?t . ?u rdf:type ontology:Q82799 . ?t rdf:type ontology:Q874405 } } GROUP BY ?u } } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) ?n WHERE { { ?n property:P361 ?b . ?n rdf:type ontology:Q82799 . ?b rdf:type ontology:Q8436 } UNION { ?n property:P361 ?b . ?n rdf:type ontology:Q82799 . ?b rdf:type ontology:Q874405 } } GROUP BY ?n } . FILTER ( ?i = ?h ) }
Piso Princes of Paliano Gyalwang Drukpa
Piso, Princes of Paliano and Gyalwang Drukpa are a portion of max number of families and social groups
Piso Princes of Paliano Gyalwang Drukpa
action argmax
action union
action find_tuple_counts
relation part of
type name
type family
action find_tuple_counts
relation part of
type name
type social group
[{'concept': 'name'}, 'part of', [{'concept': 'family'}, {'concept': 'social group'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) ?u WHERE { { ?u property:part_of ?t . ?u rdf:type ontology:name . ?t rdf:type ontology:family } UNION { ?u property:part_of ?t . ?u rdf:type ontology:name . ?t rdf:type ontology:social_group } } GROUP BY ?u } } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) ?n WHERE { { ?n property:part_of ?b . ?n rdf:type ontology:name . ?b rdf:type ontology:family } UNION { ?n property:part_of ?b . ?n rdf:type ontology:name . ?b rdf:type ontology:social_group } } GROUP BY ?n } . FILTER ( ?i = ?h ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q82799 Q15709879 Q1792379
USER
How many names are demonstrated in atmost 4 artwork series and art genres ?
(c(Q15709879)|c(Q1792379),P180,c(Q82799))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
value 4
[[{'concept': 'Q15709879'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) ?r WHERE { VALUES ( ?x ) { ( ontology:Q15709879 ) ( ontology:Q1792379 ) } . ?q rdf:type ?x } GROUP BY ?r } . FILTER ( ?y <= 4 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action find_reverse_tuple_counts
relation depicts
type name
type art genre
value 4
[[{'concept': 'artwork series'}, {'concept': 'art genre'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) ?r WHERE { VALUES ( ?x ) { ( ontology:artwork_series ) ( ontology:art_genre ) } . ?q rdf:type ?x } GROUP BY ?r } . FILTER ( ?y <= 4 ) }
[]
name artwork series art genre
SYSTEM
54
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(Q15709879)|c(Q1792379),P180,c(Q82799))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
value 4
[ANSWER]
[[{'concept': 'Q15709879'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) ?r WHERE { VALUES ( ?x ) { ( ontology:Q15709879 ) ( ontology:Q1792379 ) } . ?q rdf:type ?x } GROUP BY ?r } . FILTER ( ?y <= 4 ) }
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
54
action count
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action find_reverse_tuple_counts
relation depicts
type name
type art genre
value 4
[[{'concept': 'artwork series'}, {'concept': 'art genre'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) ?r WHERE { VALUES ( ?x ) { ( ontology:artwork_series ) ( ontology:art_genre ) } . ?q rdf:type ?x } GROUP BY ?r } . FILTER ( ?y <= 4 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q82799 Q3305213 Q18783400
USER
Which names are expressed in max number of paintings and genres of sculpture ?
(c(Q3305213)|c(Q18783400),P180,c(Q82799))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
[[{'concept': 'Q3305213'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) ?l WHERE { { ?m property:P180 ?l . ?l rdf:type ontology:Q82799 . ?m rdf:type ontology:Q3305213 } UNION { ?m property:P180 ?l . ?m rdf:type ontology:Q18783400 . ?l rdf:type ontology:Q82799 } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) ?j WHERE { VALUES ( ?b ) { ( ontology:Q18783400 ) ( ontology:Q3305213 ) } . ?z rdf:type ?b } GROUP BY ?j } . FILTER ( ?c = ?y ) }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type name
type painting
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
[[{'concept': 'painting'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) ?l WHERE { { ?m property:depicts ?l . ?l rdf:type ontology:name . ?m rdf:type ontology:painting } UNION { ?m property:depicts ?l . ?m rdf:type ontology:genre_of_sculpture . ?l rdf:type ontology:name } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) ?j WHERE { VALUES ( ?b ) { ( ontology:genre_of_sculpture ) ( ontology:painting ) } . ?z rdf:type ?b } GROUP BY ?j } . FILTER ( ?c = ?y ) }
[]
name painting genre of sculpture
Q726
SYSTEM
horse
Q726
(c(Q3305213)|c(Q18783400),P180,c(Q82799))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
The [ANSWER] is expressed in max number of paintings and genres of sculpture
[[{'concept': 'Q3305213'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) ?l WHERE { { ?m property:P180 ?l . ?l rdf:type ontology:Q82799 . ?m rdf:type ontology:Q3305213 } UNION { ?m property:P180 ?l . ?m rdf:type ontology:Q18783400 . ?l rdf:type ontology:Q82799 } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) ?j WHERE { VALUES ( ?b ) { ( ontology:Q18783400 ) ( ontology:Q3305213 ) } . ?z rdf:type ?b } GROUP BY ?j } . FILTER ( ?c = ?y ) }
horse
The horse is expressed in max number of paintings and genres of sculpture
horse
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type name
type painting
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
[[{'concept': 'painting'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) ?l WHERE { { ?m property:depicts ?l . ?l rdf:type ontology:name . ?m rdf:type ontology:painting } UNION { ?m property:depicts ?l . ?m rdf:type ontology:genre_of_sculpture . ?l rdf:type ontology:name } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) ?j WHERE { VALUES ( ?b ) { ( ontology:genre_of_sculpture ) ( ontology:painting ) } . ?z rdf:type ?b } GROUP BY ?j } . FILTER ( ?c = ?y ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q726
P689
Q12136
USER
Which disease can afflict that name ?
(c(Q12136),P689,Q726)
action filter_type
action find_reverse
entity Q726
relation P689
type Q12136
[{'concept': 'Q12136'}, 'P689', 'Q726']
SELECT DISTINCT ?a WHERE { ?a property:P689 resource:Q726 . ?a rdf:type ontology:Q12136 }
horse
action filter_type
action find_reverse
entity horse
relation afflicts
type disease
[{'concept': 'disease'}, 'afflicts', 'horse']
SELECT DISTINCT ?a WHERE { ?a property:afflicts resource:horse . ?a rdf:type ontology:disease }
[]
disease
Q708200
SYSTEM
arthrose in horses
Q708200
(c(Q12136),P689,Q726)
action filter_type
action find_reverse
entity Q726
relation P689
type Q12136
[ANSWER] can afflict that name
[{'concept': 'Q12136'}, 'P689', 'Q726']
SELECT DISTINCT ?a WHERE { ?a property:P689 resource:Q726 . ?a rdf:type ontology:Q12136 }
arthrose in horses
Arthrose in horses can afflict that name
arthrose in horses
action filter_type
action find_reverse
entity horse
relation afflicts
type disease
[{'concept': 'disease'}, 'afflicts', 'horse']
SELECT DISTINCT ?a WHERE { ?a property:afflicts resource:horse . ?a rdf:type ontology:disease }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q708200 Q726
P689
Q82799
USER
Does that disease afflict horse ?
(Q708200,P689,Q726)
action is_in
entity Q726
action find
entity Q708200
relation P689
['Q708200', 'P689', 'Q726']
ASK WHERE { resource:Q708200 property:P689 resource:Q726 }
arthrose in horses horse
action is_in
entity horse
action find
entity arthrose in horses
relation afflicts
['arthrose in horses', 'afflicts', 'horse']
ASK WHERE { resource:arthrose_in_horses property:afflicts resource:horse }
[]
name
SYSTEM
YES
(Q708200,P689,Q726)
action is_in
entity Q726
action find
entity Q708200
relation P689
[ANSWER]
['Q708200', 'P689', 'Q726']
ASK WHERE { resource:Q708200 property:P689 resource:Q726 }
Yes
action is_in
entity horse
action find
entity arthrose in horses
relation afflicts
['arthrose in horses', 'afflicts', 'horse']
ASK WHERE { resource:arthrose_in_horses property:afflicts resource:horse }
[]