Simple Question (Direct)
Simple Question
Q2268618
P106
Q12737077
USER
What do Stefano Zacchiroli do for a living ?
(Q2268618,P106,c(Q12737077))
action filter_type
action find
entity Q2268618
relation P106
type Q12737077
['Q2268618', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q2268618 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Stefano Zacchiroli
action filter_type
action find
entity Stefano Zacchiroli
relation occupation
type occupation
['Stefano Zacchiroli', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Stefano_Zacchiroli property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q81096 Q82594 Q5482740
SYSTEM
engineer, computer scientist, programmer
Q81096 Q82594 Q5482740
(Q2268618,P106,c(Q12737077))
action filter_type
action find
entity Q2268618
relation P106
type Q12737077
Stefano Zacchiroli do for a living as [ANSWERS]
['Q2268618', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q2268618 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
engineer computer scientist programmer
Stefano Zacchiroli do for a living as engineer, computer scientist and programmer
engineer computer scientist programmer
action filter_type
action find
entity Stefano Zacchiroli
relation occupation
type occupation
['Stefano Zacchiroli', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Stefano_Zacchiroli property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2268618
P27
Q15617994
USER
Which administrative territory does Stefano Zacchiroli belong to ?
(Q2268618,P27,c(Q15617994))
action filter_type
action find
entity Q2268618
relation P27
type Q15617994
['Q2268618', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q2268618 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Stefano Zacchiroli
action filter_type
action find
entity Stefano Zacchiroli
relation country of citizenship
type designation for an administrative territorial entity
['Stefano Zacchiroli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Stefano_Zacchiroli property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q2268618,P27,c(Q15617994))
action filter_type
action find
entity Q2268618
relation P27
type Q15617994
Stefano Zacchiroli belongs to [ANSWER]
['Q2268618', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q2268618 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Italy
Stefano Zacchiroli belongs to Italy
Italy
action filter_type
action find
entity Stefano Zacchiroli
relation country of citizenship
type designation for an administrative territorial entity
['Stefano Zacchiroli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Stefano_Zacchiroli property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4992635
Q15617994
USER
And also tell me about Toshirō Daigo?
(Q4992635,P27,c(Q15617994))
action filter_type
action find
entity Q4992635
relation P27
type Q15617994
['Q4992635', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . resource:Q4992635 property:P27 ?d }
Toshirō Daigo
action filter_type
action find
entity Toshirō Daigo
relation country of citizenship
type designation for an administrative territorial entity
['Toshirō Daigo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Toshirō_Daigo property:country_of_citizenship ?d }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q4992635,P27,c(Q15617994))
action filter_type
action find
entity Q4992635
relation P27
type Q15617994
[ANSWER]
['Q4992635', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . resource:Q4992635 property:P27 ?d }
Japan
Japan
action filter_type
action find
entity Toshirō Daigo
relation country of citizenship
type designation for an administrative territorial entity
['Toshirō Daigo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Toshirō_Daigo property:country_of_citizenship ?d }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q17 Q16977354
P530
Q15617994
USER
Does Moulton Independent School District have a diplomatic relationship with Japan ?
(Q17,P530,Q16977354)
action is_in
entity Q16977354
action find
entity Q17
relation P530
['Q17', 'P530', 'Q16977354']
ASK WHERE { resource:Q17 property:P530 resource:Q16977354 }
Japan Moulton Independent School District
action is_in
entity Moulton Independent School District
action find
entity Japan
relation diplomatic relation
['Japan', 'diplomatic relation', 'Moulton Independent School District']
ASK WHERE { resource:Japan property:diplomatic_relation resource:Moulton_Independent_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q17,P530,Q16977354)
action is_in
entity Q16977354
action find
entity Q17
relation P530
[ANSWER]
['Q17', 'P530', 'Q16977354']
ASK WHERE { resource:Q17 property:P530 resource:Q16977354 }
No
action is_in
entity Moulton Independent School District
action find
entity Japan
relation diplomatic relation
['Japan', 'diplomatic relation', 'Moulton Independent School District']
ASK WHERE { resource:Japan property:diplomatic_relation resource:Moulton_Independent_School_District }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2268618 Q1891
P19
Q56061
USER
Was Stefano Zacchiroli born in Bologna ?
(Q2268618,P19,Q1891)
action is_in
entity Q1891
action find
entity Q2268618
relation P19
['Q2268618', 'P19', 'Q1891']
ASK WHERE { resource:Q2268618 property:P19 resource:Q1891 }
Stefano Zacchiroli Bologna
action is_in
entity Bologna
action find
entity Stefano Zacchiroli
relation place of birth
['Stefano Zacchiroli', 'place of birth', 'Bologna']
ASK WHERE { resource:Stefano_Zacchiroli property:place_of_birth resource:Bologna }
[]
administrative territorial entity
SYSTEM
YES
(Q2268618,P19,Q1891)
action is_in
entity Q1891
action find
entity Q2268618
relation P19
[ANSWER]
['Q2268618', 'P19', 'Q1891']
ASK WHERE { resource:Q2268618 property:P19 resource:Q1891 }
Yes
action is_in
entity Bologna
action find
entity Stefano Zacchiroli
relation place of birth
['Stefano Zacchiroli', 'place of birth', 'Bologna']
ASK WHERE { resource:Stefano_Zacchiroli property:place_of_birth resource:Bologna }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q5482740 Q80006
P425
Q1047113
USER
Is computer programming associated with the field of occupation programmer ?
(Q5482740,P425,Q80006)
action is_in
entity Q80006
action find
entity Q5482740
relation P425
['Q5482740', 'P425', 'Q80006']
ASK WHERE { resource:Q5482740 property:P425 resource:Q80006 }
programmer computer programming
action is_in
entity computer programming
action find
entity programmer
relation field of this occupation
['programmer', 'field of this occupation', 'computer programming']
ASK WHERE { resource:programmer property:field_of_this_occupation resource:computer_programming }
[]
special field
SYSTEM
YES
(Q5482740,P425,Q80006)
action is_in
entity Q80006
action find
entity Q5482740
relation P425
[ANSWER]
['Q5482740', 'P425', 'Q80006']
ASK WHERE { resource:Q5482740 property:P425 resource:Q80006 }
Yes
action is_in
entity computer programming
action find
entity programmer
relation field of this occupation
['programmer', 'field of this occupation', 'computer programming']
ASK WHERE { resource:programmer property:field_of_this_occupation resource:computer_programming }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q11483558 Q17
P47 P17
Q15617994
USER
Which administrative territories are bordered by Japan or are Hiraga bypass situated in ?
OR((Q17,P47,c(Q15617994)), (Q11483558,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q17
relation P47
action find
entity Q11483558
relation P17
type Q15617994
{'OR': [['Q17', 'P47', {'concept': 'Q15617994'}], ['Q11483558', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . { { resource:Q17 property:P47 ?g } UNION { resource:Q11483558 property:P17 ?g } } }
Hiraga bypass Japan
action filter_type
action union
action find
entity Japan
relation shares border with
action find
entity Hiraga bypass
relation country
type designation for an administrative territorial entity
{'OR': [['Japan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Hiraga bypass', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Japan property:shares_border_with ?g } UNION { resource:Hiraga_bypass property:country ?g } } }
[]
designation for an administrative territorial entity
Q148 Q884 Q159 Q423 Q17
SYSTEM
People's Republic of China, South Korea, Russia, North Korea, Japan
Q148 Q884 Q159 Q423 Q17
OR((Q17,P47,c(Q15617994)), (Q11483558,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q17
relation P47
action find
entity Q11483558
relation P17
type Q15617994
[ANSWERS] are bordered by Japan or are Hiraga bypass situated in
{'OR': [['Q17', 'P47', {'concept': 'Q15617994'}], ['Q11483558', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . { { resource:Q17 property:P47 ?g } UNION { resource:Q11483558 property:P17 ?g } } }
People's Republic of China South Korea Russia North Korea Japan
People's Republic of China, South Korea, Russia, North Korea and Japan are bordered by Japan or are Hiraga bypass situated in
People's Republic of China South Korea Russia North Korea Japan
action filter_type
action union
action find
entity Japan
relation shares border with
action find
entity Hiraga bypass
relation country
type designation for an administrative territorial entity
{'OR': [['Japan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Hiraga bypass', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Japan property:shares_border_with ?g } UNION { resource:Hiraga_bypass property:country ?g } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2451850
P530
Q1048835
USER
Are Salvaterra de Magos known to have diplomatic connections with those administrative territories ?
(Q2451850,P530,Q148) (Q2451850,P530,Q884) (Q2451850,P530,Q159) (Q2451850,P530,Q423) (Q2451850,P530,Q17)
action is_in
entity prev_answer
action find
entity Q2451850
relation P530
['Q2451850', 'P530', 'Q148'] ['Q2451850', 'P530', 'Q884'] ['Q2451850', 'P530', 'Q159'] ['Q2451850', 'P530', 'Q423'] ['Q2451850', 'P530', 'Q17']
ASK WHERE { resource:Q2451850 property:P530 ?h . VALUES ( ?h ) { ( resource:Q148 ) ( resource:Q884 ) ( resource:Q159 ) } }
Salvaterra de Magos
action is_in
entity prev_answer
action find
entity Salvaterra de Magos
relation diplomatic relation
['Salvaterra de Magos', 'diplomatic relation', "People's Republic of China"] ['Salvaterra de Magos', 'diplomatic relation', 'South Korea'] ['Salvaterra de Magos', 'diplomatic relation', 'Russia'] ['Salvaterra de Magos', 'diplomatic relation', 'North Korea'] ['Salvaterra de Magos', 'diplomatic relation', 'Japan']
ASK WHERE { resource:Salvaterra_de_Magos property:diplomatic_relation ?h . VALUES ( ?h ) { ( resource:People's_Republic_of_China ) ( resource:South_Korea ) ( resource:Russia ) } }
[]
political territorial entity
SYSTEM
NO
(Q2451850,P530,Q148) (Q2451850,P530,Q884) (Q2451850,P530,Q159) (Q2451850,P530,Q423) (Q2451850,P530,Q17)
action is_in
entity prev_answer
action find
entity Q2451850
relation P530
[ANSWER]
['Q2451850', 'P530', 'Q148'] ['Q2451850', 'P530', 'Q884'] ['Q2451850', 'P530', 'Q159'] ['Q2451850', 'P530', 'Q423'] ['Q2451850', 'P530', 'Q17']
ASK WHERE { resource:Q2451850 property:P530 ?h . VALUES ( ?h ) { ( resource:Q148 ) ( resource:Q884 ) ( resource:Q159 ) } }
No
action is_in
entity prev_answer
action find
entity Salvaterra de Magos
relation diplomatic relation
['Salvaterra de Magos', 'diplomatic relation', "People's Republic of China"] ['Salvaterra de Magos', 'diplomatic relation', 'South Korea'] ['Salvaterra de Magos', 'diplomatic relation', 'Russia'] ['Salvaterra de Magos', 'diplomatic relation', 'North Korea'] ['Salvaterra de Magos', 'diplomatic relation', 'Japan']
ASK WHERE { resource:Salvaterra_de_Magos property:diplomatic_relation ?h . VALUES ( ?h ) { ( resource:People's_Republic_of_China ) ( resource:South_Korea ) ( resource:Russia ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q17 Q1938432
P530
Q1048835
USER
Does Vallelado have diplomatic relationships with Japan ?
(Q17,P530,Q1938432)
action is_in
entity Q1938432
action find
entity Q17
relation P530
['Q17', 'P530', 'Q1938432']
ASK WHERE { resource:Q17 property:P530 resource:Q1938432 }
Japan Vallelado
action is_in
entity Vallelado
action find
entity Japan
relation diplomatic relation
['Japan', 'diplomatic relation', 'Vallelado']
ASK WHERE { resource:Japan property:diplomatic_relation resource:Vallelado }
[]
political territorial entity
SYSTEM
NO
(Q17,P530,Q1938432)
action is_in
entity Q1938432
action find
entity Q17
relation P530
[ANSWER]
['Q17', 'P530', 'Q1938432']
ASK WHERE { resource:Q17 property:P530 resource:Q1938432 }
No
action is_in
entity Vallelado
action find
entity Japan
relation diplomatic relation
['Japan', 'diplomatic relation', 'Vallelado']
ASK WHERE { resource:Japan property:diplomatic_relation resource:Vallelado }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q838811
P180
Q12737077 Q838948 Q2342494
USER
Which occupations are depicted in less number of works of art and collectables than peasant ?
(c(Q838948)|c(Q2342494),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 Q2342494
action count
action filter_multi_types
action find_reverse
entity Q838811
relation P180
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?h ) WHERE { VALUES ( ?c ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } . ?j rdf:type ?c } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:P180 resource:Q838811 . { ?b rdf:type ?a . VALUES ( ?a ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?h < ?m ) }
peasant
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 collectable
action count
action filter_multi_types
action find_reverse
entity peasant
relation depicts
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?h ) WHERE { VALUES ( ?c ) { ( ontology:work_of_art ) ( ontology:collectable ) } . ?j rdf:type ?c } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:depicts resource:peasant . { ?b rdf:type ?a . VALUES ( ?a ) { ( ontology:work_of_art ) ( ontology:collectable ) } } } } . FILTER ( ?h < ?m ) }
[]
occupation work of art collectable
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 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 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q331432 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(Q2342494),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 Q2342494
action count
action filter_multi_types
action find_reverse
entity Q838811
relation P180
type Q838948
type Q2342494
[ANSWERS] are depicted in less number of works of art and collectables than peasant
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?h ) WHERE { VALUES ( ?c ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } . ?j rdf:type ?c } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:P180 resource:Q838811 . { ?b rdf:type ?a . VALUES ( ?a ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?h < ?m ) }
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 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 woodcutter lacemaker Snake charming carpenter school teacher officer fisherman 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 less number of works of art and collectables than peasant
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 collectable
action count
action filter_multi_types
action find_reverse
entity peasant
relation depicts
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?h ) WHERE { VALUES ( ?c ) { ( ontology:work_of_art ) ( ontology:collectable ) } . ?j rdf:type ?c } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:depicts resource:peasant . { ?b rdf:type ?a . VALUES ( ?a ) { ( ontology:work_of_art ) ( ontology:collectable ) } } } } . FILTER ( ?h < ?m ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q5716684
P180
Q12737077 Q838948 Q2342494
USER
And how about dancer?
(c(Q838948)|c(Q2342494),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 Q2342494
action count
action filter_multi_types
action find_reverse
entity Q5716684
relation P180
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?t WHERE { { ?v property:P180 ?t . ?t rdf:type ontology:Q12737077 . ?v rdf:type ontology:Q838948 } UNION { ?v property:P180 ?t . ?t rdf:type ontology:Q12737077 . ?v rdf:type ontology:Q2342494 } } GROUP BY ?t } . FILTER ( ?p < ?m ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { { { ?n rdf:type ontology:Q838948 } UNION { ?n rdf:type ontology:Q2342494 } } . ?n property:P180 resource:Q5716684 } } }
dancer
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 collectable
action count
action filter_multi_types
action find_reverse
entity dancer
relation depicts
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?t WHERE { { ?v property:depicts ?t . ?t rdf:type ontology:occupation . ?v rdf:type ontology:work_of_art } UNION { ?v property:depicts ?t . ?t rdf:type ontology:occupation . ?v rdf:type ontology:collectable } } GROUP BY ?t } . FILTER ( ?p < ?m ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { { { ?n rdf:type ontology:work_of_art } UNION { ?n rdf:type ontology:collectable } } . ?n property:depicts resource:dancer } } }
[]
occupation work of art collectable
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 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q207651 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q1627992 Q2309784 Q253567 Q3439798 Q2191547 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q331432 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(Q2342494),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 Q2342494
action count
action filter_multi_types
action find_reverse
entity Q5716684
relation P180
type Q838948
type Q2342494
[ANSWERS]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?t WHERE { { ?v property:P180 ?t . ?t rdf:type ontology:Q12737077 . ?v rdf:type ontology:Q838948 } UNION { ?v property:P180 ?t . ?t rdf:type ontology:Q12737077 . ?v rdf:type ontology:Q2342494 } } GROUP BY ?t } . FILTER ( ?p < ?m ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { { { ?n rdf:type ontology:Q838948 } UNION { ?n rdf:type ontology:Q2342494 } } . ?n property:P180 resource:Q5716684 } } }
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 courtier judge abbot matador goldsmith waterseller pretender astronomer surgeon domestic worker cook executioner 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 woodcutter lacemaker Snake charming carpenter school teacher officer fisherman 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 work of art
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity dancer
relation depicts
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?t WHERE { { ?v property:depicts ?t . ?t rdf:type ontology:occupation . ?v rdf:type ontology:work_of_art } UNION { ?v property:depicts ?t . ?t rdf:type ontology:occupation . ?v rdf:type ontology:collectable } } GROUP BY ?t } . FILTER ( ?p < ?m ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { { { ?n rdf:type ontology:work_of_art } UNION { ?n rdf:type ontology:collectable } } . ?n property:depicts resource:dancer } } }
[]