Simple Question (Direct)
Simple Question
Q13529965
P106
Q12737077
USER
What is the job of Joseph Lawrence ?
(Q13529965,P106,c(Q12737077))
action filter_type
action find
entity Q13529965
relation P106
type Q12737077
['Q13529965', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q13529965 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
Joseph Lawrence
action filter_type
action find
entity Joseph Lawrence
relation occupation
type occupation
['Joseph Lawrence', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Joseph_Lawrence property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q13529965,P106,c(Q12737077))
action filter_type
action find
entity Q13529965
relation P106
type Q12737077
The job of Joseph Lawrence is a [ANSWER]
['Q13529965', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q13529965 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
politician
The job of Joseph Lawrence is a politician
politician
action filter_type
action find
entity Joseph Lawrence
relation occupation
type occupation
['Joseph Lawrence', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Joseph_Lawrence property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q82955
P39
Q502895
USER
Which person was appointed for the position of that occupation ?
(c(Q502895),P39,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . ?d property:P39 resource:Q82955 }
politician
action filter_type
action find_reverse
entity politician
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . ?d property:position_held resource:politician }
[]
common name
Q26215129
SYSTEM
Morteza Azari
Q26215129
(c(Q502895),P39,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
[ANSWER] was appointed for the position of that occupation
[{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . ?d property:P39 resource:Q82955 }
Morteza Azari
Morteza Azari was appointed for the position of that occupation
Morteza Azari
action filter_type
action find_reverse
entity politician
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . ?d property:position_held resource:politician }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26215129
P140
Q874405
USER
Which social group is the religion of that person ?
(Q26215129,P140,c(Q874405))
action filter_type
action find
entity Q26215129
relation P140
type Q874405
['Q26215129', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?x WHERE { resource:Q26215129 property:P140 ?x . ?x rdf:type ontology:Q874405 }
Morteza Azari
action filter_type
action find
entity Morteza Azari
relation religion
type social group
['Morteza Azari', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?x WHERE { resource:Morteza_Azari property:religion ?x . ?x rdf:type ontology:social_group }
[]
social group
Q432
SYSTEM
Islam
Q432
(Q26215129,P140,c(Q874405))
action filter_type
action find
entity Q26215129
relation P140
type Q874405
The [ANSWER] is the religion of that person
['Q26215129', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?x WHERE { resource:Q26215129 property:P140 ?x . ?x rdf:type ontology:Q874405 }
Islam
The Islam is the religion of that person
Islam
action filter_type
action find
entity Morteza Azari
relation religion
type social group
['Morteza Azari', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?x WHERE { resource:Morteza_Azari property:religion ?x . ?x rdf:type ontology:social_group }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P138
Q82799 Q874405
USER
Which names are around 1 social group named after ?
(c(Q874405),P138,c(Q82799))
action approx
action find_reverse_tuple_counts
relation P138
type Q82799
type Q874405
value 1
[{'concept': 'Q874405'}, 'P138', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?y ) WHERE { ?e property:P138 ?z . ?z rdf:type ontology:Q82799 . ?e rdf:type ontology:Q874405 } GROUP BY ?z } }
action approx
action find_reverse_tuple_counts
relation named after
type name
type social group
value 1
[{'concept': 'social group'}, 'named after', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?y ) WHERE { ?e property:named_after ?z . ?z rdf:type ontology:name . ?e rdf:type ontology:social_group } GROUP BY ?z } }
[]
name social group
Q19930319 Q18822560 Q19833249
SYSTEM
Salis, Mortimer, Frei
Q19930319 Q18822560 Q19833249 Q18579278
(c(Q874405),P138,c(Q82799))
action approx
action find_reverse_tuple_counts
relation P138
type Q82799
type Q874405
value 1
[ANSWERS] are around 1 social group named after
[{'concept': 'Q874405'}, 'P138', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?y ) WHERE { ?e property:P138 ?z . ?z rdf:type ontology:Q82799 . ?e rdf:type ontology:Q874405 } GROUP BY ?z } }
Salis Mortimer Frei Burckhardt
Salis, Mortimer and Frei are around 1 social group named after
Salis Mortimer Frei
action approx
action find_reverse_tuple_counts
relation named after
type name
type social group
value 1
[{'concept': 'social group'}, 'named after', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?y = 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?y ) WHERE { ?e property:named_after ?z . ?z rdf:type ontology:name . ?e rdf:type ontology:social_group } GROUP BY ?z } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q82799 Q1792379 Q17335294
USER
Which names are expressed in atmost 3 art genres or coats of arms ?
(c(Q1792379)|c(Q17335294),P180,c(Q82799))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
value 3
[[{'concept': 'Q1792379'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?t ) WHERE { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1792379 ) ( ontology:Q17335294 ) } } GROUP BY ?u } . FILTER ( ?t <= 3 ) }
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
value 3
[[{'concept': 'art genre'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?t ) WHERE { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:art_genre ) ( ontology:flag_or_coat_of_arms ) } } GROUP BY ?u } . FILTER ( ?t <= 3 ) }
[]
name art genre flag or coat of arms
Q144 Q1807269 Q876933
SYSTEM
dog, leek, magi
Q13219075 Q134609 Q5 Q726 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(Q1792379)|c(Q17335294),P180,c(Q82799))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
value 3
[ANSWERS] are expressed in atmost 3 art genres or coats of arms
[[{'concept': 'Q1792379'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?t ) WHERE { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1792379 ) ( ontology:Q17335294 ) } } GROUP BY ?u } . FILTER ( ?t <= 3 ) }
octopus Cynara scolymus human horse 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 3 art genres or coats of arms
dog leek magi
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
value 3
[[{'concept': 'art genre'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?t ) WHERE { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:art_genre ) ( ontology:flag_or_coat_of_arms ) } } GROUP BY ?u } . FILTER ( ?t <= 3 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q82799 Q1792379 Q17335294
USER
Which names are expressed in atmost 3 art genres and coats of arms ?
(c(Q1792379)|c(Q17335294),P180,c(Q82799))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
value 3
[[{'concept': 'Q1792379'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?r <= 3 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?g WHERE { { ?i property:P180 ?g . ?g rdf:type ontology:Q82799 . ?i rdf:type ontology:Q1792379 } UNION { ?i property:P180 ?g . ?g rdf:type ontology:Q82799 . ?i rdf:type ontology:Q17335294 } } GROUP BY ?g } }
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
value 3
[[{'concept': 'art genre'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?r <= 3 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?g WHERE { { ?i property:depicts ?g . ?g rdf:type ontology:name . ?i rdf:type ontology:art_genre } UNION { ?i property:depicts ?g . ?g rdf:type ontology:name . ?i rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?g } }
[]
name art genre flag or coat of arms
Q144 Q1807269 Q876933
SYSTEM
dog, leek, magi
Q13219075 Q134609 Q5 Q726 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(Q1792379)|c(Q17335294),P180,c(Q82799))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
value 3
[ANSWERS] are expressed in atmost 3 art genres and coats of arms
[[{'concept': 'Q1792379'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?r <= 3 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?g WHERE { { ?i property:P180 ?g . ?g rdf:type ontology:Q82799 . ?i rdf:type ontology:Q1792379 } UNION { ?i property:P180 ?g . ?g rdf:type ontology:Q82799 . ?i rdf:type ontology:Q17335294 } } GROUP BY ?g } }
octopus Cynara scolymus human horse 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 3 art genres and coats of arms
dog leek magi
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
value 3
[[{'concept': 'art genre'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?r <= 3 ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?g WHERE { { ?i property:depicts ?g . ?g rdf:type ontology:name . ?i rdf:type ontology:art_genre } UNION { ?i property:depicts ?g . ?g rdf:type ontology:name . ?i rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?g } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q23395 Q144
P417 P58
Q502895
USER
Which people are the patron saints of dog or were the screenwriters for Fear and Loathing in Las Vegas ?
OR((Q144,P417,c(Q502895)), (Q23395,P58,c(Q502895)))
action filter_type
action union
action find
entity Q144
relation P417
action find
entity Q23395
relation P58
type Q502895
{'OR': [['Q144', 'P417', {'concept': 'Q502895'}], ['Q23395', 'P58', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q144 property:P417 ?w } UNION { resource:Q23395 property:P58 ?w } } . ?w rdf:type ontology:Q502895 }
Fear and Loathing in Las Vegas dog
action filter_type
action union
action find
entity dog
relation patron saint
action find
entity Fear and Loathing in Las Vegas
relation screenwriter
type common name
{'OR': [['dog', 'patron saint', {'concept': 'common name'}], ['Fear and Loathing in Las Vegas', 'screenwriter', {'concept': 'common name'}]]}
SELECT DISTINCT ?w WHERE { { { resource:dog property:patron_saint ?w } UNION { resource:Fear_and_Loathing_in_Las_Vegas property:screenwriter ?w } } . ?w rdf:type ontology:common_name }
[]
common name
Q159834 Q212850 Q152457 Q778865 Q7812073 Q3531781 Q25078
SYSTEM
Hubertus, Vitus, Saint Roch, Alex Cox, Tod Davies, Tony Grisoni, Terry Gilliam
Q159834 Q212850 Q152457 Q778865 Q7812073 Q3531781 Q25078
OR((Q144,P417,c(Q502895)), (Q23395,P58,c(Q502895)))
action filter_type
action union
action find
entity Q144
relation P417
action find
entity Q23395
relation P58
type Q502895
[ANSWERS] are the patron saints of dog or were the screenwriters for Fear and Loathing in Las Vegas
{'OR': [['Q144', 'P417', {'concept': 'Q502895'}], ['Q23395', 'P58', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q144 property:P417 ?w } UNION { resource:Q23395 property:P58 ?w } } . ?w rdf:type ontology:Q502895 }
Hubertus Vitus Saint Roch Alex Cox Tod Davies Tony Grisoni Terry Gilliam
Hubertus, Vitus, Saint Roch, Alex Cox, Tod Davies, Tony Grisoni and Terry Gilliam are the patron saints of dog or were the screenwriters for Fear and Loathing in Las Vegas
Hubertus Vitus Saint Roch Alex Cox Tod Davies Tony Grisoni Terry Gilliam
action filter_type
action union
action find
entity dog
relation patron saint
action find
entity Fear and Loathing in Las Vegas
relation screenwriter
type common name
{'OR': [['dog', 'patron saint', {'concept': 'common name'}], ['Fear and Loathing in Las Vegas', 'screenwriter', {'concept': 'common name'}]]}
SELECT DISTINCT ?w WHERE { { { resource:dog property:patron_saint ?w } UNION { resource:Fear_and_Loathing_in_Las_Vegas property:screenwriter ?w } } . ?w rdf:type ontology:common_name }
[]