Simple Question (Direct)
Simple Question
Q4177445
P20
Q515
USER
Where did the demise of Márton Rakovszky occur ?
(Q4177445,P20,c(Q515))
action filter_type
action find
entity Q4177445
relation P20
type Q515
['Q4177445', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { resource:Q4177445 property:P20 ?h . ?h rdf:type ontology:Q515 }
Márton Rakovszky
action filter_type
action find
entity Márton Rakovszky
relation place of death
type city
['Márton Rakovszky', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { resource:Márton_Rakovszky property:place_of_death ?h . ?h rdf:type ontology:city }
[]
city
Q155975
SYSTEM
Kutná Hora
Q155975
(Q4177445,P20,c(Q515))
action filter_type
action find
entity Q4177445
relation P20
type Q515
The demise of Márton Rakovszky occurred in [ANSWER]
['Q4177445', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { resource:Q4177445 property:P20 ?h . ?h rdf:type ontology:Q515 }
Kutná Hora
The demise of Márton Rakovszky occurred in Kutná Hora
Kutná Hora
action filter_type
action find
entity Márton Rakovszky
relation place of death
type city
['Márton Rakovszky', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { resource:Márton_Rakovszky property:place_of_death ?h . ?h rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4177445
P21
Q290
USER
Which sex does that person belong to ?
(Q155975,P21,c(Q290))
action filter_type
action find
entity Q4177445
relation P21
type Q290
['Q155975', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q4177445 property:P21 ?r . ?r rdf:type ontology:Q290 }
Márton Rakovszky
action filter_type
action find
entity Márton Rakovszky
relation gender
type sex
['Kutná Hora', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Márton_Rakovszky property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q155975,P21,c(Q290))
action filter_type
action find
entity Q4177445
relation P21
type Q290
That person belongs to [ANSWER]
['Q155975', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q4177445 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Márton Rakovszky
relation gender
type sex
['Kutná Hora', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Márton_Rakovszky property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4177445
P106
Q12737077
USER
What are the professions of that person ?
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q4177445
relation P106
type Q12737077
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q12737077 . resource:Q4177445 property:P106 ?e }
Márton Rakovszky
action filter_type
action find
entity Márton Rakovszky
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:occupation . resource:Márton_Rakovszky property:occupation ?e }
[]
occupation
Q49757 Q36180
SYSTEM
poet, writer
Q49757 Q36180
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q4177445
relation P106
type Q12737077
The professions of that person are the [ANSWERS]
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q12737077 . resource:Q4177445 property:P106 ?e }
poet writer
The professions of that person are the poet and writer
poet writer
action filter_type
action find
entity Márton Rakovszky
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:occupation . resource:Márton_Rakovszky property:occupation ?e }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q49757 Q36180
P937
Q502895
USER
Which people have poet and writer as work location ?
(c(Q502895),P937,Q49757) (c(Q502895),P937,Q36180)
action union
action filter_type
action find_reverse
entity Q49757
relation P937
type Q502895
action filter_type
action find_reverse
entity Q36180
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q49757'] [{'concept': 'Q502895'}, 'P937', 'Q36180']
SELECT DISTINCT ?c WHERE { VALUES ( ?i ) { ( resource:Q49757 ) ( resource:Q36180 ) } . ?c property:P937 ?i }
poet writer
action union
action filter_type
action find_reverse
entity poet
relation work location
type common name
action filter_type
action find_reverse
entity writer
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'poet'] [{'concept': 'common name'}, 'work location', 'writer']
SELECT DISTINCT ?c WHERE { VALUES ( ?i ) { ( resource:poet ) ( resource:writer ) } . ?c property:work_location ?i }
[]
common name
Q3398852
SYSTEM
Lidija Dimkovska
Q3398852
(c(Q502895),P937,Q49757) (c(Q502895),P937,Q36180)
action union
action filter_type
action find_reverse
entity Q49757
relation P937
type Q502895
action filter_type
action find_reverse
entity Q36180
relation P937
type Q502895
[ANSWER] have poet and writer as work location
[{'concept': 'Q502895'}, 'P937', 'Q49757'] [{'concept': 'Q502895'}, 'P937', 'Q36180']
SELECT DISTINCT ?c WHERE { VALUES ( ?i ) { ( resource:Q49757 ) ( resource:Q36180 ) } . ?c property:P937 ?i }
Lidija Dimkovska
Lidija Dimkovska have poet and writer as work location
Lidija Dimkovska
action union
action filter_type
action find_reverse
entity poet
relation work location
type common name
action filter_type
action find_reverse
entity writer
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'poet'] [{'concept': 'common name'}, 'work location', 'writer']
SELECT DISTINCT ?c WHERE { VALUES ( ?i ) { ( resource:poet ) ( resource:writer ) } . ?c property:work_location ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4177445
P27
Q15617994
USER
Which administrative territory does Márton Rakovszky belong to ?
(Q4177445,P27,c(Q15617994))
action filter_type
action find
entity Q4177445
relation P27
type Q15617994
['Q4177445', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q4177445 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Márton Rakovszky
action filter_type
action find
entity Márton Rakovszky
relation country of citizenship
type designation for an administrative territorial entity
['Márton Rakovszky', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Márton_Rakovszky property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q214
SYSTEM
Slovakia
Q214
(Q4177445,P27,c(Q15617994))
action filter_type
action find
entity Q4177445
relation P27
type Q15617994
Márton Rakovszky belongs to [ANSWER]
['Q4177445', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q4177445 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Slovakia
Márton Rakovszky belongs to Slovakia
Slovakia
action filter_type
action find
entity Márton Rakovszky
relation country of citizenship
type designation for an administrative territorial entity
['Márton Rakovszky', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Márton_Rakovszky property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q214
P530
Q15617994
USER
Who holds diplomatic relationship with that one ?
(Q214,P530,c(Q15617994))
action filter_type
action find
entity Q214
relation P530
type Q15617994
['Q214', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . resource:Q214 property:P530 ?e }
Slovakia
action filter_type
action find
entity Slovakia
relation diplomatic relation
type designation for an administrative territorial entity
['Slovakia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Slovakia property:diplomatic_relation ?e }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q214,P530,c(Q15617994))
action filter_type
action find
entity Q214
relation P530
type Q15617994
[ANSWER] holds diplomatic relationship with that one
['Q214', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . resource:Q214 property:P530 ?e }
Italy
Italy holds diplomatic relationship with that one
Italy
action filter_type
action find
entity Slovakia
relation diplomatic relation
type designation for an administrative territorial entity
['Slovakia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Slovakia property:diplomatic_relation ?e }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q14009165
P180
Q12737077 Q838948 Q3305213
USER
Which occupations are expressed in less number of works of art and paintings than trapper ?
(c(Q838948)|c(Q3305213),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 Q3305213
action count
action filter_multi_types
action find_reverse
entity Q14009165
relation P180
type Q838948
type Q3305213
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { ?i property:P180 resource:Q14009165 . { { ?i rdf:type ontology:Q3305213 } UNION { ?i rdf:type ontology:Q838948 } } } } . FILTER ( ?s < ?c ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?v WHERE { VALUES ( ?j ) { ( ontology:Q838948 ) ( ontology:Q3305213 ) } . ?e rdf:type ?j } GROUP BY ?v } }
trapper
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 painting
action count
action filter_multi_types
action find_reverse
entity trapper
relation depicts
type work of art
type painting
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { ?i property:depicts resource:trapper . { { ?i rdf:type ontology:painting } UNION { ?i rdf:type ontology:work_of_art } } } } . FILTER ( ?s < ?c ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?v WHERE { VALUES ( ?j ) { ( ontology:work_of_art ) ( ontology:painting ) } . ?e rdf:type ?j } GROUP BY ?v } }
[]
occupation work of art painting
Q186360 Q242468 Q182436
SYSTEM
nurse, tailor, librarian
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q1569439 Q16735601 Q37226 Q152355 Q1218776 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q4610556 Q161944 Q472898 Q45199 Q7358 Q19968805 Q185196 Q328325 Q11900058 Q212238 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q170790 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q327321 Q549322 Q327029 Q2309900 Q5371902 Q17126809 Q848550 Q386854 Q202648 Q1753370 Q107711 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q537575 Q20826540 Q715301 Q11338576 Q15954519 Q29182 Q326358 Q5575361 Q1161133 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q15725121 Q185992 Q133485 Q674067 Q901 Q589897 Q4594605 Q242468 Q2596569 Q1234713 Q848466 Q116 Q1509714 Q152002 Q1511216 Q16533 Q2412523 Q211423 Q11063 Q774306 Q2276446 Q18575684 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q253567 Q3439798 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q765541 Q2011889 Q49476 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q191808 Q182436 Q2259532 Q373017 Q2180295 Q1294787 Q2627286 Q437512 Q13414980 Q849424 Q7622988 Q157195
(c(Q838948)|c(Q3305213),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 Q3305213
action count
action filter_multi_types
action find_reverse
entity Q14009165
relation P180
type Q838948
type Q3305213
The [ANSWERS] are expressed in less number of works of art and paintings than trapper
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { ?i property:P180 resource:Q14009165 . { { ?i rdf:type ontology:Q3305213 } UNION { ?i rdf:type ontology:Q838948 } } } } . FILTER ( ?s < ?c ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?v WHERE { VALUES ( ?j ) { ( ontology:Q838948 ) ( ontology:Q3305213 ) } . ?e rdf:type ?j } GROUP BY ?v } }
fiddler acrobat milkmaid worker standard-bearer sheep shearer florist teacher cobbler arriero sewing executor astronaut cooper house painter organist double-bassist actor valet sex worker woman of letters ventriloquist amateur wrestler king of marksmen geographer Archbishop of Canterbury minister receptionist milkman coachman model deacon wet nurse sailor clown spinner midwife stonemason explorer civil servant abbé architect street musician nurse parson mathematician mayor bell-ringer miner beekeeper washerwoman cellist bricklayer torero mechanic helmsman harpsichordist rescuer VOC Opperhoofd in Japan drummer referee curate firefighter dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja friar hobo fishmonger recorder player laborer gravedigger erudite comics artist boxer alchemist bishop joiner goatherd pedicure courtesan member of parliament bartender clogmaker peddler reaper condottiero canon bassoonist mufti rabbi mime artist scientist mahout magistrate tailor housekeeper theologian courier monarch porter pastor courtier judge matador goldsmith astronomer surgeon domestic worker cook embroiderer exotic dancer lyricist plasterer gardener composer miller tightrope walker apprentice King of France woodcutter lacemaker Snake charming carpenter school teacher baker knife grinder police officer guard Maid of honour kazasker madam archbishop boatman salesperson cricketer aviator milkmaid nun librarian cleric basketry mail carrier artisan bushranger weaver Australian-rules footballer sea captain street artist waiting staff
The nurse, tailor and librarian are expressed in less number of works of art and paintings than trapper
nurse tailor librarian
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 painting
action count
action filter_multi_types
action find_reverse
entity trapper
relation depicts
type work of art
type painting
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { ?i property:depicts resource:trapper . { { ?i rdf:type ontology:painting } UNION { ?i rdf:type ontology:work_of_art } } } } . FILTER ( ?s < ?c ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?v WHERE { VALUES ( ?j ) { ( ontology:work_of_art ) ( ontology:painting ) } . ?e rdf:type ?j } GROUP BY ?v } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1250916
P180
Q12737077 Q838948 Q3305213
USER
And also tell me about warrior?
(c(Q838948)|c(Q3305213),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 Q3305213
action count
action filter_multi_types
action find_reverse
entity Q1250916
relation P180
type Q838948
type Q3305213
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?w WHERE { { ?o property:P180 ?w . ?w rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q838948 } UNION { ?o property:P180 ?w . ?o rdf:type ontology:Q3305213 . ?w rdf:type ontology:Q12737077 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { { { ?i rdf:type ontology:Q3305213 } UNION { ?i rdf:type ontology:Q838948 } } . ?i property:P180 resource:Q1250916 } } . FILTER ( ?v < ?m ) }
warrior
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 painting
action count
action filter_multi_types
action find_reverse
entity warrior
relation depicts
type work of art
type painting
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?w WHERE { { ?o property:depicts ?w . ?w rdf:type ontology:occupation . ?o rdf:type ontology:work_of_art } UNION { ?o property:depicts ?w . ?o rdf:type ontology:painting . ?w rdf:type ontology:occupation } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { { { ?i rdf:type ontology:painting } UNION { ?i rdf:type ontology:work_of_art } } . ?i property:depicts resource:warrior } } . FILTER ( ?v < ?m ) }
[]
occupation work of art painting
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 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 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(Q3305213),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 Q3305213
action count
action filter_multi_types
action find_reverse
entity Q1250916
relation P180
type Q838948
type Q3305213
[ANSWERS]
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?w WHERE { { ?o property:P180 ?w . ?w rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q838948 } UNION { ?o property:P180 ?w . ?o rdf:type ontology:Q3305213 . ?w rdf:type ontology:Q12737077 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { { { ?i rdf:type ontology:Q3305213 } UNION { ?i rdf:type ontology:Q838948 } } . ?i property:P180 resource:Q1250916 } } . FILTER ( ?v < ?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 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 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 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 painting
action count
action filter_multi_types
action find_reverse
entity warrior
relation depicts
type work of art
type painting
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?w WHERE { { ?o property:depicts ?w . ?w rdf:type ontology:occupation . ?o rdf:type ontology:work_of_art } UNION { ?o property:depicts ?w . ?o rdf:type ontology:painting . ?w rdf:type ontology:occupation } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { { { ?i rdf:type ontology:painting } UNION { ?i rdf:type ontology:work_of_art } } . ?i property:depicts resource:warrior } } . FILTER ( ?v < ?m ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q131512 Q186360 Q242468
P417
Q502895
USER
What people are the patron saint of farmer, nurse and tailor ?
(Q131512,P417,c(Q502895)) (Q186360,P417,c(Q502895)) (Q242468,P417,c(Q502895))
action union
action filter_type
action find
entity Q131512
relation P417
type Q502895
action filter_type
action find
entity Q186360
relation P417
type Q502895
action filter_type
action find
entity Q242468
relation P417
type Q502895
['Q131512', 'P417', {'concept': 'Q502895'}] ['Q186360', 'P417', {'concept': 'Q502895'}] ['Q242468', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { { resource:Q131512 property:P417 ?m . ?m rdf:type ontology:Q502895 } UNION { ?m rdf:type ontology:Q502895 . resource:Q186360 property:P417 ?m } }
farmer nurse tailor
action union
action filter_type
action find
entity farmer
relation patron saint
type common name
action filter_type
action find
entity nurse
relation patron saint
type common name
action filter_type
action find
entity tailor
relation patron saint
type common name
['farmer', 'patron saint', {'concept': 'common name'}] ['nurse', 'patron saint', {'concept': 'common name'}] ['tailor', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { { resource:farmer property:patron_saint ?m . ?m rdf:type ontology:common_name } UNION { ?m rdf:type ontology:common_name . resource:nurse property:patron_saint ?m } }
[]
common name
Q166876 Q229190 Q44265
SYSTEM
Isidore of Seville, Catherine of Siena, Benedict of Nursia
Q119289 Q166876 Q151967 Q44265 Q43982 Q332656 Q200895 Q229190 Q137947 Q179718 Q179718 Q43982
(Q131512,P417,c(Q502895)) (Q186360,P417,c(Q502895)) (Q242468,P417,c(Q502895))
action union
action filter_type
action find
entity Q131512
relation P417
type Q502895
action filter_type
action find
entity Q186360
relation P417
type Q502895
action filter_type
action find
entity Q242468
relation P417
type Q502895
[ANSWERS] are the patron saint of farmer, nurse and tailor
['Q131512', 'P417', {'concept': 'Q502895'}] ['Q186360', 'P417', {'concept': 'Q502895'}] ['Q242468', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { { resource:Q131512 property:P417 ?m . ?m rdf:type ontology:Q502895 } UNION { ?m rdf:type ontology:Q502895 . resource:Q186360 property:P417 ?m } }
Leonard of Port Maurice Isidore of Seville Saint Blaise Benedict of Nursia Bartholomew the Apostle Camillus de Lellis Agatha of Sicily Catherine of Siena Alexius of Rome Catherine of Alexandria Catherine of Alexandria Bartholomew the Apostle
Isidore of Seville, Catherine of Siena and Benedict of Nursia are the patron saint of farmer, nurse and tailor
Isidore of Seville Catherine of Siena Benedict of Nursia
action union
action filter_type
action find
entity farmer
relation patron saint
type common name
action filter_type
action find
entity nurse
relation patron saint
type common name
action filter_type
action find
entity tailor
relation patron saint
type common name
['farmer', 'patron saint', {'concept': 'common name'}] ['nurse', 'patron saint', {'concept': 'common name'}] ['tailor', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { { resource:farmer property:patron_saint ?m . ?m rdf:type ontology:common_name } UNION { ?m rdf:type ontology:common_name . resource:nurse property:patron_saint ?m } }
[]