Simple Question (Direct)
Simple Question
Q20707962
P106
Q12737077
USER
What is the profession of Eric Bird ?
(Q20707962,P106,c(Q12737077))
action filter_type
action find
entity Q20707962
relation P106
type Q12737077
['Q20707962', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q20707962 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Eric Bird
action filter_type
action find
entity Eric Bird
relation occupation
type occupation
['Eric Bird', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Eric_Bird property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q20707962,P106,c(Q12737077))
action filter_type
action find
entity Q20707962
relation P106
type Q12737077
The profession of Eric Bird is an [ANSWER]
['Q20707962', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q20707962 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
association football player
The profession of Eric Bird is an association football player
association football player
action filter_type
action find
entity Eric Bird
relation occupation
type occupation
['Eric Bird', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Eric_Bird property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20707962
P54
Q12973014
USER
Which sports team is Eric Bird a member of ?
(Q20707962,P54,c(Q12973014))
action filter_type
action find
entity Q20707962
relation P54
type Q12973014
['Q20707962', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?o WHERE { resource:Q20707962 property:P54 ?o . ?o rdf:type ontology:Q12973014 }
Eric Bird
action filter_type
action find
entity Eric Bird
relation member of sports team
type sports team
['Eric Bird', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?o WHERE { resource:Eric_Bird property:member_of_sports_team ?o . ?o rdf:type ontology:sports_team }
[]
sports team
Q20720736
SYSTEM
Rio Grande Valley FC
Q20720736
(Q20707962,P54,c(Q12973014))
action filter_type
action find
entity Q20707962
relation P54
type Q12973014
The [ANSWER] is Eric Bird a member of
['Q20707962', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?o WHERE { resource:Q20707962 property:P54 ?o . ?o rdf:type ontology:Q12973014 }
Rio Grande Valley FC
The Rio Grande Valley FC is Eric Bird a member of
Rio Grande Valley FC
action filter_type
action find
entity Eric Bird
relation member of sports team
type sports team
['Eric Bird', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?o WHERE { resource:Eric_Bird property:member_of_sports_team ?o . ?o rdf:type ontology:sports_team }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q20720736 Q1198002
P17
Q15617994
USER
Is Rio Grande Valley FC present in Tongguanshan District ?
(Q20720736,P17,Q1198002)
action is_in
entity Q1198002
action find
entity Q20720736
relation P17
['Q20720736', 'P17', 'Q1198002']
ASK WHERE { resource:Q20720736 property:P17 resource:Q1198002 }
Rio Grande Valley FC Tongguanshan District
action is_in
entity Tongguanshan District
action find
entity Rio Grande Valley FC
relation country
['Rio Grande Valley FC', 'country', 'Tongguanshan District']
ASK WHERE { resource:Rio_Grande_Valley_FC property:country resource:Tongguanshan_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q20720736,P17,Q1198002)
action is_in
entity Q1198002
action find
entity Q20720736
relation P17
[ANSWER]
['Q20720736', 'P17', 'Q1198002']
ASK WHERE { resource:Q20720736 property:P17 resource:Q1198002 }
No
action is_in
entity Tongguanshan District
action find
entity Rio Grande Valley FC
relation country
['Rio Grande Valley FC', 'country', 'Tongguanshan District']
ASK WHERE { resource:Rio_Grande_Valley_FC property:country resource:Tongguanshan_District }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q20707962 Q5467273 Q51949
P27
Q15617994
USER
Is Eric Bird a citizen of Forbes Road School District and Rodi Garganico ?
(Q20707962,P27,Q5467273) (Q20707962,P27,Q51949)
action is_in
entity Q20707962
action intersection
action find_reverse
entity Q5467273
relation P27
action find_reverse
entity Q51949
relation P27
['Q20707962', 'P27', 'Q5467273'] ['Q20707962', 'P27', 'Q51949']
ASK WHERE { resource:Q20707962 property:P27 resource:Q5467273 . resource:Q20707962 property:P27 resource:Q51949 }
Eric Bird Forbes Road School District Rodi Garganico
action is_in
entity Eric Bird
action intersection
action find_reverse
entity Forbes Road School District
relation country of citizenship
action find_reverse
entity Rodi Garganico
relation country of citizenship
['Eric Bird', 'country of citizenship', 'Forbes Road School District'] ['Eric Bird', 'country of citizenship', 'Rodi Garganico']
ASK WHERE { resource:Eric_Bird property:country_of_citizenship resource:Forbes_Road_School_District . resource:Eric_Bird property:country_of_citizenship resource:Rodi_Garganico }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q20707962,P27,Q5467273) (Q20707962,P27,Q51949)
action is_in
entity Q20707962
action intersection
action find_reverse
entity Q5467273
relation P27
action find_reverse
entity Q51949
relation P27
[ANSWER]
['Q20707962', 'P27', 'Q5467273'] ['Q20707962', 'P27', 'Q51949']
ASK WHERE { resource:Q20707962 property:P27 resource:Q5467273 . resource:Q20707962 property:P27 resource:Q51949 }
No
action is_in
entity Eric Bird
action intersection
action find_reverse
entity Forbes Road School District
relation country of citizenship
action find_reverse
entity Rodi Garganico
relation country of citizenship
['Eric Bird', 'country of citizenship', 'Forbes Road School District'] ['Eric Bird', 'country of citizenship', 'Rodi Garganico']
ASK WHERE { resource:Eric_Bird property:country_of_citizenship resource:Forbes_Road_School_District . resource:Eric_Bird property:country_of_citizenship resource:Rodi_Garganico }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P115
Q1076486 Q811979 Q12973014
USER
Which sports teams have exactly 4 sports venues and architectural structures as their home venue ?
(c(Q12973014),P115,c(Q1076486)|c(Q811979))
action equal
action union
action find_tuple_counts
relation P115
type Q12973014
type Q1076486
action find_tuple_counts
relation P115
type Q12973014
type Q811979
value 4
[{'concept': 'Q12973014'}, 'P115', [{'concept': 'Q1076486'}, {'concept': 'Q811979'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) ?c WHERE { { ?c property:P115 ?n . ?c rdf:type ontology:Q12973014 . ?n rdf:type ontology:Q1076486 } UNION { ?c property:P115 ?n . ?n rdf:type ontology:Q811979 . ?c rdf:type ontology:Q12973014 } } GROUP BY ?c } . FILTER ( ?k = 4 ) }
action equal
action union
action find_tuple_counts
relation home venue
type sports team
type sports venue
action find_tuple_counts
relation home venue
type sports team
type architectural structure
value 4
[{'concept': 'sports team'}, 'home venue', [{'concept': 'sports venue'}, {'concept': 'architectural structure'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) ?c WHERE { { ?c property:home_venue ?n . ?c rdf:type ontology:sports_team . ?n rdf:type ontology:sports_venue } UNION { ?c property:home_venue ?n . ?n rdf:type ontology:architectural_structure . ?c rdf:type ontology:sports_team } } GROUP BY ?c } . FILTER ( ?k = 4 ) }
[]
sports venue architectural structure sports team
Q129164 Q461595 Q653772
SYSTEM
Fukuoka SoftBank Hawks, Atlanta Braves, Pittsburgh Pirates
Q129164 Q461595 Q653772
(c(Q12973014),P115,c(Q1076486)|c(Q811979))
action equal
action union
action find_tuple_counts
relation P115
type Q12973014
type Q1076486
action find_tuple_counts
relation P115
type Q12973014
type Q811979
value 4
[ANSWERS] have exactly 4 sports venues and architectural structures as their home venue
[{'concept': 'Q12973014'}, 'P115', [{'concept': 'Q1076486'}, {'concept': 'Q811979'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) ?c WHERE { { ?c property:P115 ?n . ?c rdf:type ontology:Q12973014 . ?n rdf:type ontology:Q1076486 } UNION { ?c property:P115 ?n . ?n rdf:type ontology:Q811979 . ?c rdf:type ontology:Q12973014 } } GROUP BY ?c } . FILTER ( ?k = 4 ) }
Fukuoka SoftBank Hawks Atlanta Braves Pittsburgh Pirates
Fukuoka SoftBank Hawks, Atlanta Braves and Pittsburgh Pirates have exactly 4 sports venues and architectural structures as their home venue
Fukuoka SoftBank Hawks Atlanta Braves Pittsburgh Pirates
action equal
action union
action find_tuple_counts
relation home venue
type sports team
type sports venue
action find_tuple_counts
relation home venue
type sports team
type architectural structure
value 4
[{'concept': 'sports team'}, 'home venue', [{'concept': 'sports venue'}, {'concept': 'architectural structure'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) ?c WHERE { { ?c property:home_venue ?n . ?c rdf:type ontology:sports_team . ?n rdf:type ontology:sports_venue } UNION { ?c property:home_venue ?n . ?n rdf:type ontology:architectural_structure . ?c rdf:type ontology:sports_team } } GROUP BY ?c } . FILTER ( ?k = 4 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories are that sports team located in ?
(Q653772,P17,c(Q15617994))
['Q653772', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q653772 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['Pittsburgh Pirates', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Pittsburgh_Pirates property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q129164
SYSTEM
Did you mean Fukuoka SoftBank Hawks ?
(Q129164,P17,c(Q15617994)) (Q461595,P17,c(Q15617994)) (Q653772,P17,c(Q15617994))
[ANSWER]
['Q129164', 'P17', {'concept': 'Q15617994'}] ['Q461595', 'P17', {'concept': 'Q15617994'}] ['Q653772', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q653772 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Fukuoka SoftBank Hawks ?
Fukuoka SoftBank Hawks
['Fukuoka SoftBank Hawks', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Atlanta Braves', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Pittsburgh Pirates', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Pittsburgh_Pirates property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Pittsburgh Pirates. Could you tell me the answer for that?
(Q653772,P17,c(Q15617994))
Q653772
['Q653772', 'P17', {'concept': 'Q15617994'}]
['Pittsburgh Pirates', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q30
(Q653772,P17,c(Q15617994))
[ANSWER]
['Q653772', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q653772 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
United States of America
1
['Pittsburgh Pirates', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Pittsburgh_Pirates property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q184 Q20707962
P530 P27
Q15617994
USER
Which administrative territories are Eric Bird a civilian of and have a diplomatic relationship with Belarus ?
AND((Q20707962,P27,c(Q15617994)), (Q184,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q20707962
relation P27
action find
entity Q184
relation P530
type Q15617994
{'AND': [['Q20707962', 'P27', {'concept': 'Q15617994'}], ['Q184', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q20707962 property:P27 ?j . resource:Q184 property:P530 ?j . ?j rdf:type ontology:Q15617994 }
Belarus Eric Bird
action filter_type
action intersection
action find
entity Eric Bird
relation country of citizenship
action find
entity Belarus
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Eric Bird', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Belarus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:Eric_Bird property:country_of_citizenship ?j . resource:Belarus property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q20707962,P27,c(Q15617994)), (Q184,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q20707962
relation P27
action find
entity Q184
relation P530
type Q15617994
[ANSWER] is Eric Bird a civilian of and have a diplomatic relationship with Belarus
{'AND': [['Q20707962', 'P27', {'concept': 'Q15617994'}], ['Q184', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q20707962 property:P27 ?j . resource:Q184 property:P530 ?j . ?j rdf:type ontology:Q15617994 }
United States of America
United States of America is Eric Bird a civilian of and have a diplomatic relationship with Belarus
United States of America
action filter_type
action intersection
action find
entity Eric Bird
relation country of citizenship
action find
entity Belarus
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Eric Bird', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Belarus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:Eric_Bird property:country_of_citizenship ?j . resource:Belarus property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q30 Q953 Q148
P530
Q15617994
USER
Is that administrative territory known to have diplomatic connections with Zambia and People's Republic of China ?
(Q30,P530,Q953) (Q30,P530,Q148)
action is_in
entity Q30
action intersection
action find_reverse
entity Q953
relation P530
action find_reverse
entity Q148
relation P530
['Q30', 'P530', 'Q953'] ['Q30', 'P530', 'Q148']
ASK WHERE { resource:Q30 property:P530 resource:Q953 . resource:Q30 property:P530 resource:Q148 }
United States of America Zambia People's Republic of China
action is_in
entity United States of America
action intersection
action find_reverse
entity Zambia
relation diplomatic relation
action find_reverse
entity People's Republic of China
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Zambia'] ['United States of America', 'diplomatic relation', "People's Republic of China"]
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Zambia . resource:United_States_of_America property:diplomatic_relation resource:People's_Republic_of_China }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q30,P530,Q953) (Q30,P530,Q148)
action is_in
entity Q30
action intersection
action find_reverse
entity Q953
relation P530
action find_reverse
entity Q148
relation P530
[ANSWER]
['Q30', 'P530', 'Q953'] ['Q30', 'P530', 'Q148']
ASK WHERE { resource:Q30 property:P530 resource:Q953 . resource:Q30 property:P530 resource:Q148 }
Yes
action is_in
entity United States of America
action intersection
action find_reverse
entity Zambia
relation diplomatic relation
action find_reverse
entity People's Republic of China
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Zambia'] ['United States of America', 'diplomatic relation', "People's Republic of China"]
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Zambia . resource:United_States_of_America property:diplomatic_relation resource:People's_Republic_of_China }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q47064
P180
Q12737077 Q838948 Q17638008
USER
Which occupations are demonstrated in lesser number of works of art or game equipment than military personnel ?
(c(Q838948)|c(Q17638008),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q47064
relation P180
type Q838948
type Q17638008
[[{'concept': 'Q838948'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) ?v WHERE { { ?a property:P180 ?v . ?v rdf:type ontology:Q12737077 . ?a rdf:type ontology:Q838948 } UNION { ?a property:P180 ?v . ?v rdf:type ontology:Q12737077 . ?a rdf:type ontology:Q17638008 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { ?o property:P180 resource:Q47064 . { ?o rdf:type ?w . VALUES ( ?w ) { ( ontology:Q838948 ) ( ontology:Q17638008 ) } } } } . FILTER ( ?c < ?p ) }
military personnel
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity military personnel
relation depicts
type work of art
type game equipment
[[{'concept': 'work of art'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) ?v WHERE { { ?a property:depicts ?v . ?v rdf:type ontology:occupation . ?a rdf:type ontology:work_of_art } UNION { ?a property:depicts ?v . ?v rdf:type ontology:occupation . ?a rdf:type ontology:game_equipment } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { ?o property:depicts resource:military_personnel . { ?o rdf:type ?w . VALUES ( ?w ) { ( ontology:work_of_art ) ( ontology:game_equipment ) } } } } . FILTER ( ?c < ?p ) }
[]
occupation work of art game equipment
Q131512 Q186360 Q242468
SYSTEM
farmer, nurse, tailor
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q177220 Q1569439 Q131512 Q16735601 Q37226 Q1401609 Q27621374 Q152355 Q1218776 Q1124183 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q4610556 Q81710 Q1259917 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q4504549 Q842782 Q185196 Q486748 Q328325 Q11900058 Q483501 Q215536 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q19723482 Q12902372 Q170790 Q1139055 Q1028181 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q733786 Q2309900 Q805221 Q5371902 Q17126809 Q12097 Q848550 Q386854 Q202648 Q1753370 Q107711 Q12059906 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q855855 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q19546 Q6116659 Q537575 Q20826540 Q715301 Q11338576 Q622630 Q3330547 Q3214532 Q14009165 Q15954519 Q2981922 Q10833314 Q1318187 Q29182 Q326358 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q54128 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 Q2730732 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q207651 Q5716684 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q1627992 Q2309784 Q253567 Q3439798 Q2191547 Q838811 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q331432 Q639669 Q49757 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q15296811 Q765541 Q2011889 Q49476 Q1281618 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q811122 Q373017 Q2180295 Q42603 Q1294787 Q1630100 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q838948)|c(Q17638008),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q47064
relation P180
type Q838948
type Q17638008
[ANSWERS] are demonstrated in lesser number of works of art or game equipment than military personnel
[[{'concept': 'Q838948'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) ?v WHERE { { ?a property:P180 ?v . ?v rdf:type ontology:Q12737077 . ?a rdf:type ontology:Q838948 } UNION { ?a property:P180 ?v . ?v rdf:type ontology:Q12737077 . ?a rdf:type ontology:Q17638008 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { ?o property:P180 resource:Q47064 . { ?o rdf:type ?w . VALUES ( ?w ) { ( ontology:Q838948 ) ( ontology:Q17638008 ) } } } } . FILTER ( ?c < ?p ) }
fiddler acrobat milkmaid worker standard-bearer singer sheep shearer farmer florist teacher vaquero bear hunter cobbler arriero lumberjack sewing executor astronaut cooper house painter organist double-bassist actor writer valet sex worker woman of letters ventriloquist amateur wrestler king of marksmen geographer Archbishop of Canterbury minister receptionist milkman coachman model shepherd violinist deacon wet nurse sailor clown spinner butcher religious servant detective midwife pianist stonemason explorer artist merchant civil servant sower abbé architect street musician nurse parson mandolinist flautist mathematician tax collector painter mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic monk helmsman ballet dancer harpsichordist rescuer king VOC Opperhoofd in Japan drummer referee curate firefighter herder dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja page friar hobo fishmonger recorder player laborer pope priestess gravedigger erudite comics artist boxer odalisque chronicler plowman trapper alchemist American pioneer tennis player scrivener bishop joiner goatherd pedicure Catholic priest courtesan member of parliament bartender clogmaker peddler reaper condottiero canon chess player discus thrower bassoonist mufti cowboy rabbi mime artist scientist harpist blacksmith mahout magistrate domestic worker tailor cardinal housekeeper theologian courier monarch salt pan worker porter pastor equestrian courtier judge abbot matador goldsmith waterseller pretender astronomer surgeon domestic worker cook executioner dancer Kassandra embroiderer high-ranking civil servant in France exotic dancer lyricist plasterer gardener composer miller tightrope walker maid lady's maid sport cyclist apprentice King of France picador peasant woodcutter lacemaker Snake charming carpenter school teacher officer fisherman musician poet baker knife grinder police officer guard Maid of honour draughtsperson kazasker madam archbishop sculptor boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric construction worker basketry mail carrier priest artisan art model bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
Farmer, nurse and tailor are demonstrated in lesser number of works of art or game equipment than military personnel
farmer nurse tailor
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity military personnel
relation depicts
type work of art
type game equipment
[[{'concept': 'work of art'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) ?v WHERE { { ?a property:depicts ?v . ?v rdf:type ontology:occupation . ?a rdf:type ontology:work_of_art } UNION { ?a property:depicts ?v . ?v rdf:type ontology:occupation . ?a rdf:type ontology:game_equipment } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { ?o property:depicts resource:military_personnel . { ?o rdf:type ?w . VALUES ( ?w ) { ( ontology:work_of_art ) ( ontology:game_equipment ) } } } } . FILTER ( ?c < ?p ) }
[]