Simple Question (Direct)
Simple Question
Q4242453
P39
Q12737077
USER
What was the position for which Alexander Krutov was appointed ?
(Q4242453,P39,c(Q12737077))
action filter_type
action find
entity Q4242453
relation P39
type Q12737077
['Q4242453', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q4242453 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
Alexander Krutov
action filter_type
action find
entity Alexander Krutov
relation position held
type occupation
['Alexander Krutov', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Alexander_Krutov property:position_held ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q17276321
SYSTEM
member of the State Duma
Q17276321
(Q4242453,P39,c(Q12737077))
action filter_type
action find
entity Q4242453
relation P39
type Q12737077
A [ANSWER]
['Q4242453', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q4242453 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
member of the State Duma
A member of the State Duma
member of the State Duma
action filter_type
action find
entity Alexander Krutov
relation position held
type occupation
['Alexander Krutov', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Alexander_Krutov property:position_held ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4242453
P937
Q56061
USER
Which administrative territory is the work location of that person ?
(Q17276321,P937,c(Q56061))
action filter_type
action find
entity Q4242453
relation P937
type Q56061
['Q17276321', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q4242453 property:P937 ?l . ?l rdf:type ontology:Q56061 }
Alexander Krutov
action filter_type
action find
entity Alexander Krutov
relation work location
type administrative territorial entity
['member of the State Duma', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Alexander_Krutov property:work_location ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649
SYSTEM
Moscow
Q649
(Q17276321,P937,c(Q56061))
action filter_type
action find
entity Q4242453
relation P937
type Q56061
[ANSWER] is the work location of that person
['Q17276321', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q4242453 property:P937 ?l . ?l rdf:type ontology:Q56061 }
Moscow
Moscow is the work location of that person
Moscow
action filter_type
action find
entity Alexander Krutov
relation work location
type administrative territorial entity
['member of the State Duma', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Alexander_Krutov property:work_location ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q649 Q3332017
P30
Q2221906
USER
How many geographic locations are Moscow or South Pole Flag Mast a part of ?
(Q649,P30,c(Q2221906)) (Q3332017,P30,c(Q2221906))
action count
action union
action filter_type
action find
entity Q649
relation P30
type Q2221906
action filter_type
action find
entity Q3332017
relation P30
type Q2221906
['Q649', 'P30', {'concept': 'Q2221906'}] ['Q3332017', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { VALUES ( ?f ) { ( resource:Q649 ) ( resource:Q3332017 ) } . ?f property:P30 ?z }
Moscow South Pole Flag Mast
action count
action union
action filter_type
action find
entity Moscow
relation continent
type geographic location
action filter_type
action find
entity South Pole Flag Mast
relation continent
type geographic location
['Moscow', 'continent', {'concept': 'geographic location'}] ['South Pole Flag Mast', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { VALUES ( ?f ) { ( resource:Moscow ) ( resource:South_Pole_Flag_Mast ) } . ?f property:continent ?z }
[]
geographic location
SYSTEM
2
Q46 Q51
(Q649,P30,c(Q2221906)) (Q3332017,P30,c(Q2221906))
action count
action union
action filter_type
action find
entity Q649
relation P30
type Q2221906
action filter_type
action find
entity Q3332017
relation P30
type Q2221906
[ANSWER]
['Q649', 'P30', {'concept': 'Q2221906'}] ['Q3332017', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { VALUES ( ?f ) { ( resource:Q649 ) ( resource:Q3332017 ) } . ?f property:P30 ?z }
Europe Antarctica
2
action count
action union
action filter_type
action find
entity Moscow
relation continent
type geographic location
action filter_type
action find
entity South Pole Flag Mast
relation continent
type geographic location
['Moscow', 'continent', {'concept': 'geographic location'}] ['South Pole Flag Mast', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { VALUES ( ?f ) { ( resource:Moscow ) ( resource:South_Pole_Flag_Mast ) } . ?f property:continent ?z }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q615157 Q3332017
P27 P137
Q15617994
USER
Which administrative territories operates South Pole Flag Mast or are the countries of citizenship of Vasyl Rachyba ?
OR((Q3332017,P137,c(Q15617994)), (Q615157,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3332017
relation P137
action find
entity Q615157
relation P27
type Q15617994
{'OR': [['Q3332017', 'P137', {'concept': 'Q15617994'}], ['Q615157', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q3332017 property:P137 ?o } UNION { resource:Q615157 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Vasyl Rachyba South Pole Flag Mast
action filter_type
action union
action find
entity South Pole Flag Mast
relation operator
action find
entity Vasyl Rachyba
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['South Pole Flag Mast', 'operator', {'concept': 'designation for an administrative territorial entity'}], ['Vasyl Rachyba', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:South_Pole_Flag_Mast property:operator ?o } UNION { resource:Vasyl_Rachyba property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q212 Q414
SYSTEM
Ukraine, Argentina
Q212 Q414
OR((Q3332017,P137,c(Q15617994)), (Q615157,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3332017
relation P137
action find
entity Q615157
relation P27
type Q15617994
[ANSWERS] operate South Pole Flag Mast or are the countries of citizenship of Vasyl Rachyba
{'OR': [['Q3332017', 'P137', {'concept': 'Q15617994'}], ['Q615157', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q3332017 property:P137 ?o } UNION { resource:Q615157 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Ukraine Argentina
Ukraine and Argentina operate South Pole Flag Mast or are the countries of citizenship of Vasyl Rachyba
Ukraine Argentina
action filter_type
action union
action find
entity South Pole Flag Mast
relation operator
action find
entity Vasyl Rachyba
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['South Pole Flag Mast', 'operator', {'concept': 'designation for an administrative territorial entity'}], ['Vasyl Rachyba', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:South_Pole_Flag_Mast property:operator ?o } UNION { resource:Vasyl_Rachyba property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q12097
P180
Q12737077 Q2342494 Q17638008
USER
Which occupations are depicted in lesser number of collectables and game equipment than king ?
(c(Q2342494)|c(Q17638008),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q12097
relation P180
type Q2342494
type Q17638008
[[{'concept': 'Q2342494'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?s ) WHERE { { ?u property:P180 ?a . ?a rdf:type ontology:Q12737077 . ?u rdf:type ontology:Q17638008 } UNION { ?u property:P180 ?a . ?u rdf:type ontology:Q2342494 . ?a rdf:type ontology:Q12737077 } } GROUP BY ?a } . FILTER ( ?s < ?h ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:P180 resource:Q12097 . { ?k rdf:type ?z . VALUES ( ?z ) { ( ontology:Q17638008 ) ( ontology:Q2342494 ) } } } } }
king
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity king
relation depicts
type collectable
type game equipment
[[{'concept': 'collectable'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?s ) WHERE { { ?u property:depicts ?a . ?a rdf:type ontology:occupation . ?u rdf:type ontology:game_equipment } UNION { ?u property:depicts ?a . ?u rdf:type ontology:collectable . ?a rdf:type ontology:occupation } } GROUP BY ?a } . FILTER ( ?s < ?h ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:depicts resource:king . { ?k rdf:type ?z . VALUES ( ?z ) { ( ontology:game_equipment ) ( ontology:collectable ) } } } } }
[]
occupation collectable 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 Q1250916 Q4610556 Q81710 Q1259917 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q4504549 Q842782 Q47064 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 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 Q4991371 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(Q2342494)|c(Q17638008),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q12097
relation P180
type Q2342494
type Q17638008
[ANSWERS] are depicted in lesser number of collectables and game equipment than king
[[{'concept': 'Q2342494'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?s ) WHERE { { ?u property:P180 ?a . ?a rdf:type ontology:Q12737077 . ?u rdf:type ontology:Q17638008 } UNION { ?u property:P180 ?a . ?u rdf:type ontology:Q2342494 . ?a rdf:type ontology:Q12737077 } } GROUP BY ?a } . FILTER ( ?s < ?h ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:P180 resource:Q12097 . { ?k rdf:type ?z . VALUES ( ?z ) { ( ontology:Q17638008 ) ( ontology:Q2342494 ) } } } } }
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 warrior model shepherd violinist deacon wet nurse sailor clown spinner butcher religious servant detective military personnel 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 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 soldier 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 depicted in lesser number of collectables and game equipment than king
farmer nurse tailor
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity king
relation depicts
type collectable
type game equipment
[[{'concept': 'collectable'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?s ) WHERE { { ?u property:depicts ?a . ?a rdf:type ontology:occupation . ?u rdf:type ontology:game_equipment } UNION { ?u property:depicts ?a . ?u rdf:type ontology:collectable . ?a rdf:type ontology:occupation } } GROUP BY ?a } . FILTER ( ?s < ?h ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { ?k property:depicts resource:king . { ?k rdf:type ?z . VALUES ( ?z ) { ( ontology:game_equipment ) ( ontology:collectable ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q843281
P180
Q12737077 Q2342494 Q17638008
USER
And how about hobo?
(c(Q2342494)|c(Q17638008),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q843281
relation P180
type Q2342494
type Q17638008
[[{'concept': 'Q2342494'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) ?c WHERE { VALUES ( ?u ) { ( ontology:Q2342494 ) ( ontology:Q17638008 ) } . ?n rdf:type ?u } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { { ?e rdf:type ontology:Q2342494 } UNION { ?e rdf:type ontology:Q17638008 } } . ?e property:P180 resource:Q843281 } } . FILTER ( ?k < ?r ) }
hobo
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity hobo
relation depicts
type collectable
type game equipment
[[{'concept': 'collectable'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) ?c WHERE { VALUES ( ?u ) { ( ontology:collectable ) ( ontology:game_equipment ) } . ?n rdf:type ?u } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { { ?e rdf:type ontology:collectable } UNION { ?e rdf:type ontology:game_equipment } } . ?e property:depicts resource:hobo } } . FILTER ( ?k < ?r ) }
[]
occupation collectable 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 Q1250916 Q4610556 Q81710 Q1259917 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q4504549 Q842782 Q47064 Q185196 Q486748 Q328325 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 Q848550 Q386854 Q202648 Q1753370 Q107711 Q12059906 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q855855 Q548320 Q550594 Q3074722 Q19862215 Q19546 Q6116659 Q537575 Q20826540 Q715301 Q11338576 Q622630 Q3330547 Q3214532 Q14009165 Q15954519 Q2981922 Q10833314 Q1318187 Q29182 Q326358 Q4991371 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 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(Q2342494)|c(Q17638008),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action count
action filter_multi_types
action find_reverse
entity Q843281
relation P180
type Q2342494
type Q17638008
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) ?c WHERE { VALUES ( ?u ) { ( ontology:Q2342494 ) ( ontology:Q17638008 ) } . ?n rdf:type ?u } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { { ?e rdf:type ontology:Q2342494 } UNION { ?e rdf:type ontology:Q17638008 } } . ?e property:P180 resource:Q843281 } } . FILTER ( ?k < ?r ) }
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 warrior model shepherd violinist deacon wet nurse sailor clown spinner butcher religious servant detective military personnel midwife pianist stonemason 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 VOC Opperhoofd in Japan drummer referee curate firefighter herder dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja page friar fishmonger recorder player laborer pope priestess gravedigger erudite comics artist boxer odalisque chronicler plowman trapper alchemist American pioneer tennis player scrivener bishop joiner soldier 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 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 tailor
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action count
action filter_multi_types
action find_reverse
entity hobo
relation depicts
type collectable
type game equipment
[[{'concept': 'collectable'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) ?c WHERE { VALUES ( ?u ) { ( ontology:collectable ) ( ontology:game_equipment ) } . ?n rdf:type ?u } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { { ?e rdf:type ontology:collectable } UNION { ?e rdf:type ontology:game_equipment } } . ?e property:depicts resource:hobo } } . FILTER ( ?k < ?r ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q33
P840
Q15617994 Q2342494 Q166142
USER
Which administrative territories are lesser number of collectables or applications set in than Finland ?
(c(Q2342494)|c(Q166142),P840,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q33
relation P840
type Q2342494
type Q166142
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?n ) WHERE { VALUES ( ?w ) { ( ontology:Q2342494 ) ( ontology:Q166142 ) } . ?j rdf:type ?w } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:P840 resource:Q33 . { ?l rdf:type ?g . VALUES ( ?g ) { ( ontology:Q2342494 ) ( ontology:Q166142 ) } } } } . FILTER ( ?n < ?v ) }
Finland
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Finland
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?n ) WHERE { VALUES ( ?w ) { ( ontology:collectable ) ( ontology:application ) } . ?j rdf:type ?w } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:narrative_location resource:Finland . { ?l rdf:type ?g . VALUES ( ?g ) { ( ontology:collectable ) ( ontology:application ) } } } } . FILTER ( ?n < ?v ) }
[]
designation for an administrative territorial entity collectable application
Q30 Q230 Q55
SYSTEM
United States of America, Georgia, Netherlands
Q377277 Q805 Q804 Q801 Q20837 Q278221 Q186115 Q414 Q3278 Q55 Q1948 Q145 Q262 Q189 Q265 Q47428 Q18021 Q842 Q36678 Q712 Q711 Q710 Q717 Q837 Q252 Q1460 Q399 Q403 Q258 Q1979 Q45 Q43 Q790 Q796 Q794 Q889 Q884 Q858 Q419 Q165040 Q822 Q241 Q232782 Q244 Q1974 Q490398 Q12515 Q32 Q31 Q30 Q37 Q36 Q34 Q928 Q39 Q58477 Q739 Q423 Q424 Q851 Q733 Q854 Q819 Q340628 Q769680 Q12798 Q236 Q230 Q12538 Q232 Q233 Q1093 Q20 Q1045 Q1044 Q1860611 Q1041 Q27 Q913434 Q29 Q127043 Q1027 Q2009 Q843 Q2007 Q184 Q1029 Q1028 Q511806 Q1458 Q91217 Q1452 Q227 Q225 Q163966 Q223 Q12700 Q2336399 Q3207 Q1033 Q1030 Q191 Q962 Q963 Q159689 Q298 Q114 Q41158 Q750 Q212 Q213 Q517107 Q217 Q218 Q219 Q20571 Q1210 Q912 Q2107 Q1007 Q1005 Q833 Q14859 Q2742 Q683 Q836 Q874 Q79 Q77 Q774 Q948 Q817 Q810 Q1019 Q1014 Q1016 Q1273 Q1011 Q28 Q12620 Q678 Q800 Q12545 Q1952 Q53216 Q869 Q6247
(c(Q2342494)|c(Q166142),P840,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q33
relation P840
type Q2342494
type Q166142
[ANSWERS] are lesser number of collectables or applications set in than Finland
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?n ) WHERE { VALUES ( ?w ) { ( ontology:Q2342494 ) ( ontology:Q166142 ) } . ?j rdf:type ?w } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:P840 resource:Q33 . { ?l rdf:type ?g . VALUES ( ?g ) { ( ontology:Q2342494 ) ( ontology:Q166142 ) } } } } . FILTER ( ?n < ?v ) }
Glückstadt Yemen Panama Israel Fanø Berchtesgaden Montmartre Argentina Charente-Maritime Netherlands Manitoba United Kingdom Algeria Iceland Uzbekistan Valdobbiadene Biella Oman West Bank Fiji Mongolia Kiribati Venezuela Nepal Indonesia Sicily Armenia Serbia South Africa Prince Edward Island Portugal Turkey Haiti Iraq Iran Afghanistan South Korea Syria Peru Duchy of Parma Lebanon Cuba Portofino Barbados British Columbia Peenemünde Gard Luxembourg Belgium United States of America Lithuania Poland Sweden Philippines Switzerland Capua Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Laos Aggius Bornholm Vendée Montenegro Georgia Haute-Garonne Kazakhstan Malta Limburg Norway Somalia Sierra Leone Viby Senegal Ireland Les Halles Spain Garmisch-Partenkirchen Mauritius Yukon Pakistan Northwest Territories Belarus Mozambique Morocco North Slope Borough Calabria Montepulciano Basilicata Azerbaijan Bosnia and Herzegovina Mitte Greenland Hautes-Pyrénées Baluchistan Aude Nigeria Namibia Estonia Benin Botswana Bomarzo Chile Kenya Cortina d'Ampezzo Bolivia Ukraine Czech Republic Rudolstadt Republic of Moldova Romania Bulgaria Spoleto Lombardy Mali Wuppertal Guinea-Bissau Gambia Malaysia Ansbach Münster Samoa Myanmar Turkmenistan Egypt Uruguay Guatemala Tunisia Kuwait Jordan Madagascar Liberia Libya Tuscany Cape Verde Hungary Mayenne Tonga Costa Rica Hérault Nova Scotia Aquileia Thailand Mantua
United States of America, Georgia and Netherlands are lesser number of collectables or applications set in than Finland
United States of America Georgia Netherlands
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Finland
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?n ) WHERE { VALUES ( ?w ) { ( ontology:collectable ) ( ontology:application ) } . ?j rdf:type ?w } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:narrative_location resource:Finland . { ?l rdf:type ?g . VALUES ( ?g ) { ( ontology:collectable ) ( ontology:application ) } } } } . FILTER ( ?n < ?v ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q750
P840
Q15617994 Q2342494 Q166142
USER
And also tell me about Bolivia?
(c(Q2342494)|c(Q166142),P840,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q750
relation P840
type Q2342494
type Q166142
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { ?i property:P840 resource:Q750 . { { ?i rdf:type ontology:Q2342494 } UNION { ?i rdf:type ontology:Q166142 } } } } . FILTER ( ?k < ?g ) . { SELECT DISTINCT ?o ( COUNT ( ?u ) AS ?k ) WHERE { { ?u property:P840 ?o . ?o rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q2342494 } UNION { ?u property:P840 ?o . ?o rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q166142 } } GROUP BY ?o } }
Bolivia
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Bolivia
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { ?i property:narrative_location resource:Bolivia . { { ?i rdf:type ontology:collectable } UNION { ?i rdf:type ontology:application } } } } . FILTER ( ?k < ?g ) . { SELECT DISTINCT ?o ( COUNT ( ?u ) AS ?k ) WHERE { { ?u property:narrative_location ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:collectable } UNION { ?u property:narrative_location ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:application } } GROUP BY ?o } }
[]
designation for an administrative territorial entity collectable application
Q230 Q36 Q801
SYSTEM
Georgia, Poland, Israel
Q377277 Q804 Q801 Q20837 Q278221 Q186115 Q3278 Q1948 Q145 Q262 Q189 Q265 Q47428 Q18021 Q842 Q36678 Q712 Q711 Q710 Q717 Q837 Q252 Q1460 Q403 Q258 Q45 Q790 Q884 Q419 Q165040 Q822 Q241 Q232782 Q244 Q1974 Q490398 Q12515 Q37 Q36 Q34 Q928 Q39 Q58477 Q739 Q423 Q424 Q851 Q733 Q854 Q819 Q340628 Q769680 Q12798 Q236 Q230 Q12538 Q232 Q233 Q1093 Q20 Q1045 Q1044 Q1860611 Q1041 Q27 Q913434 Q127043 Q1027 Q2009 Q2007 Q184 Q1029 Q1028 Q511806 Q1458 Q91217 Q1452 Q225 Q163966 Q223 Q12700 Q2336399 Q3207 Q1033 Q1030 Q191 Q962 Q963 Q159689 Q114 Q41158 Q212 Q213 Q517107 Q217 Q218 Q219 Q20571 Q1210 Q912 Q2107 Q1007 Q1005 Q833 Q14859 Q2742 Q683 Q836 Q874 Q77 Q774 Q948 Q817 Q810 Q1019 Q1014 Q1016 Q1273 Q1011 Q28 Q12620 Q678 Q800 Q12545 Q1952 Q53216 Q6247
(c(Q2342494)|c(Q166142),P840,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q750
relation P840
type Q2342494
type Q166142
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { ?i property:P840 resource:Q750 . { { ?i rdf:type ontology:Q2342494 } UNION { ?i rdf:type ontology:Q166142 } } } } . FILTER ( ?k < ?g ) . { SELECT DISTINCT ?o ( COUNT ( ?u ) AS ?k ) WHERE { { ?u property:P840 ?o . ?o rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q2342494 } UNION { ?u property:P840 ?o . ?o rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q166142 } } GROUP BY ?o } }
Glückstadt Panama Israel Fanø Berchtesgaden Montmartre Charente-Maritime Manitoba United Kingdom Algeria Iceland Uzbekistan Valdobbiadene Biella Oman West Bank Fiji Mongolia Kiribati Venezuela Nepal Indonesia Sicily Serbia South Africa Portugal Haiti South Korea Peru Duchy of Parma Lebanon Cuba Portofino Barbados British Columbia Peenemünde Gard Lithuania Poland Sweden Philippines Switzerland Capua Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Laos Aggius Bornholm Vendée Montenegro Georgia Haute-Garonne Kazakhstan Malta Limburg Norway Somalia Sierra Leone Viby Senegal Ireland Les Halles Garmisch-Partenkirchen Mauritius Yukon Northwest Territories Belarus Mozambique Morocco North Slope Borough Calabria Montepulciano Basilicata Bosnia and Herzegovina Mitte Greenland Hautes-Pyrénées Baluchistan Aude Nigeria Namibia Estonia Benin Botswana Bomarzo Kenya Cortina d'Ampezzo Ukraine Czech Republic Rudolstadt Republic of Moldova Romania Bulgaria Spoleto Lombardy Mali Wuppertal Guinea-Bissau Gambia Malaysia Ansbach Münster Samoa Myanmar Turkmenistan Uruguay Guatemala Tunisia Kuwait Jordan Madagascar Liberia Libya Tuscany Cape Verde Hungary Mayenne Tonga Costa Rica Hérault Nova Scotia Aquileia Mantua
Georgia Poland Israel
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Bolivia
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { ?i property:narrative_location resource:Bolivia . { { ?i rdf:type ontology:collectable } UNION { ?i rdf:type ontology:application } } } } . FILTER ( ?k < ?g ) . { SELECT DISTINCT ?o ( COUNT ( ?u ) AS ?k ) WHERE { { ?u property:narrative_location ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:collectable } UNION { ?u property:narrative_location ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:application } } GROUP BY ?o } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q284273
P530
Q15617994
USER
Do Mandas have tactful political relations with those ones ?
(Q284273,P530,Q230) (Q284273,P530,Q36) (Q284273,P530,Q801)
action is_in
entity prev_answer
action find
entity Q284273
relation P530
['Q284273', 'P530', 'Q230'] ['Q284273', 'P530', 'Q36'] ['Q284273', 'P530', 'Q801']
ASK WHERE { resource:Q284273 property:P530 ?o . VALUES ( ?o ) { ( resource:Q377277 ) ( resource:Q804 ) ( resource:Q801 ) } }
Mandas
action is_in
entity prev_answer
action find
entity Mandas
relation diplomatic relation
['Mandas', 'diplomatic relation', 'Georgia'] ['Mandas', 'diplomatic relation', 'Poland'] ['Mandas', 'diplomatic relation', 'Israel']
ASK WHERE { resource:Mandas property:diplomatic_relation ?o . VALUES ( ?o ) { ( resource:Glückstadt ) ( resource:Panama ) ( resource:Israel ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q284273,P530,Q230) (Q284273,P530,Q36) (Q284273,P530,Q801)
action is_in
entity prev_answer
action find
entity Q284273
relation P530
[ANSWER]
['Q284273', 'P530', 'Q230'] ['Q284273', 'P530', 'Q36'] ['Q284273', 'P530', 'Q801']
ASK WHERE { resource:Q284273 property:P530 ?o . VALUES ( ?o ) { ( resource:Q377277 ) ( resource:Q804 ) ( resource:Q801 ) } }
No
action is_in
entity prev_answer
action find
entity Mandas
relation diplomatic relation
['Mandas', 'diplomatic relation', 'Georgia'] ['Mandas', 'diplomatic relation', 'Poland'] ['Mandas', 'diplomatic relation', 'Israel']
ASK WHERE { resource:Mandas property:diplomatic_relation ?o . VALUES ( ?o ) { ( resource:Glückstadt ) ( resource:Panama ) ( resource:Israel ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q230 Q769 Q4424529
P530
Q1048835
USER
Does Georgia have diplomatic relations with Grenada and Smyrenivka ?
(Q230,P530,Q769) (Q230,P530,Q4424529)
action is_in
entity Q230
action intersection
action find_reverse
entity Q769
relation P530
action find_reverse
entity Q4424529
relation P530
['Q230', 'P530', 'Q769'] ['Q230', 'P530', 'Q4424529']
ASK WHERE { resource:Q230 property:P530 resource:Q4424529 . resource:Q230 property:P530 resource:Q769 }
Georgia Grenada Smyrenivka
action is_in
entity Georgia
action intersection
action find_reverse
entity Grenada
relation diplomatic relation
action find_reverse
entity Smyrenivka
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Grenada'] ['Georgia', 'diplomatic relation', 'Smyrenivka']
ASK WHERE { resource:Georgia property:diplomatic_relation resource:Smyrenivka . resource:Georgia property:diplomatic_relation resource:Grenada }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q230,P530,Q769) (Q230,P530,Q4424529)
action is_in
entity Q230
action intersection
action find_reverse
entity Q769
relation P530
action find_reverse
entity Q4424529
relation P530
[ANSWER]
['Q230', 'P530', 'Q769'] ['Q230', 'P530', 'Q4424529']
ASK WHERE { resource:Q230 property:P530 resource:Q4424529 . resource:Q230 property:P530 resource:Q769 }
YES and NO respectively
action is_in
entity Georgia
action intersection
action find_reverse
entity Grenada
relation diplomatic relation
action find_reverse
entity Smyrenivka
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Grenada'] ['Georgia', 'diplomatic relation', 'Smyrenivka']
ASK WHERE { resource:Georgia property:diplomatic_relation resource:Smyrenivka . resource:Georgia property:diplomatic_relation resource:Grenada }
[]