Simple Question (Direct)
Simple Question
Q2073904
P21
Q290
USER
Which sex does Pape Hamadou N'Diaye have ?
(Q2073904,P21,c(Q290))
action filter_type
action find
entity Q2073904
relation P21
type Q290
['Q2073904', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q2073904 property:P21 ?w . ?w rdf:type ontology:Q290 }
Pape Hamadou N'Diaye
action filter_type
action find
entity Pape Hamadou N'Diaye
relation gender
type sex
["Pape Hamadou N'Diaye", 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Pape_Hamadou_N'Diaye property:gender ?w . ?w rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2073904,P21,c(Q290))
action filter_type
action find
entity Q2073904
relation P21
type Q290
Pape Hamadou N'Diaye has a [ANSWER]
['Q2073904', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q2073904 property:P21 ?w . ?w rdf:type ontology:Q290 }
male
Pape Hamadou N'Diaye has a male
male
action filter_type
action find
entity Pape Hamadou N'Diaye
relation gender
type sex
["Pape Hamadou N'Diaye", 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Pape_Hamadou_N'Diaye property:gender ?w . ?w rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2073904
P106
Q12737077
USER
What is the profession of that person ?
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q2073904
relation P106
type Q12737077
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q2073904 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
Pape Hamadou N'Diaye
action filter_type
action find
entity Pape Hamadou N'Diaye
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Pape_Hamadou_N'Diaye property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q2073904
relation P106
type Q12737077
The profession of that person is an [ANSWER]
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q2073904 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
association football player
The profession of that person is an association football player
association football player
action filter_type
action find
entity Pape Hamadou N'Diaye
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Pape_Hamadou_N'Diaye property:occupation ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q937857
P800
Q502895
USER
Whose notable work was that occupation ?
(c(Q502895),P800,Q937857)
action filter_type
action find_reverse
entity Q937857
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q937857']
SELECT DISTINCT ?u WHERE { ?u property:P800 resource:Q937857 . ?u rdf:type ontology:Q502895 }
association football player
action filter_type
action find_reverse
entity association football player
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'association football player']
SELECT DISTINCT ?u WHERE { ?u property:notable_work resource:association_football_player . ?u rdf:type ontology:common_name }
[]
common name
Q23047441
SYSTEM
Hugh Morgan-Owen
Q23047441
(c(Q502895),P800,Q937857)
action filter_type
action find_reverse
entity Q937857
relation P800
type Q502895
[ANSWER] was that occupation
[{'concept': 'Q502895'}, 'P800', 'Q937857']
SELECT DISTINCT ?u WHERE { ?u property:P800 resource:Q937857 . ?u rdf:type ontology:Q502895 }
Hugh Morgan-Owen
Hugh Morgan-Owen was that occupation
Hugh Morgan-Owen
action filter_type
action find_reverse
entity association football player
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'association football player']
SELECT DISTINCT ?u WHERE { ?u property:notable_work resource:association_football_player . ?u rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q838948
USER
How many works of art had atleast 25 people as the dubbing artist ?
(c(Q838948),P725,c(Q502895))
action count
action atleast
action find_tuple_counts
relation P725
type Q838948
type Q502895
value 25
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { FILTER ( ?n >= 25 ) . { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?n ) WHERE { ?q property:P725 ?b . ?q rdf:type ontology:Q838948 . ?b rdf:type ontology:Q502895 } GROUP BY ?q } }
action count
action atleast
action find_tuple_counts
relation voice actor
type work of art
type common name
value 25
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { FILTER ( ?n >= 25 ) . { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?n ) WHERE { ?q property:voice_actor ?b . ?q rdf:type ontology:work_of_art . ?b rdf:type ontology:common_name } GROUP BY ?q } }
[]
common name work of art
SYSTEM
3
Q477365 Q16857406 Q19263748
(c(Q838948),P725,c(Q502895))
action count
action atleast
action find_tuple_counts
relation P725
type Q838948
type Q502895
value 25
[ANSWER]
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { FILTER ( ?n >= 25 ) . { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?n ) WHERE { ?q property:P725 ?b . ?q rdf:type ontology:Q838948 . ?b rdf:type ontology:Q502895 } GROUP BY ?q } }
101 Dalmatians II: Patch's London Adventure The Jungle Book The Anthem of the Heart
3
action count
action atleast
action find_tuple_counts
relation voice actor
type work of art
type common name
value 25
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { FILTER ( ?n >= 25 ) . { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?n ) WHERE { ?q property:voice_actor ?b . ?q rdf:type ontology:work_of_art . ?b rdf:type ontology:common_name } GROUP BY ?q } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q3330547
P180
Q12737077 Q2342494 Q3305213
USER
How many occupations are expressed in around the same number of collectables and paintings as chronicler ?
(c(Q2342494)|c(Q3305213),P180,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q3330547
relation P180
type Q2342494
type Q3305213
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?w ) WHERE { VALUES ( ?c ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } . ?g rdf:type ?c } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { ?q rdf:type ?i . VALUES ( ?i ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } } . ?q property:P180 resource:Q3330547 } } . FILTER ( ?w = ?e ) }
chronicler
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity chronicler
relation depicts
type collectable
type painting
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?w ) WHERE { VALUES ( ?c ) { ( ontology:collectable ) ( ontology:painting ) } . ?g rdf:type ?c } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { ?q rdf:type ?i . VALUES ( ?i ) { ( ontology:collectable ) ( ontology:painting ) } } . ?q property:depicts resource:chronicler } } . FILTER ( ?w = ?e ) }
[]
occupation collectable painting
SYSTEM
189
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q177220 Q1569439 Q16735601 Q37226 Q27621374 Q152355 Q1218776 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q1250916 Q4610556 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q47064 Q185196 Q328325 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q12902372 Q170790 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q2309900 Q805221 Q5371902 Q17126809 Q848550 Q386854 Q202648 Q1753370 Q107711 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q855855 Q548320 Q550594 Q3074722 Q19862215 Q19546 Q6116659 Q537575 Q20826540 Q715301 Q11338576 Q622630 Q3330547 Q3214532 Q15954519 Q2981922 Q29182 Q326358 Q5575361 Q1161133 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q54128 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 Q1511216 Q16533 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q1627992 Q2309784 Q253567 Q3439798 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q765541 Q2011889 Q49476 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q373017 Q2180295 Q1294787 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q2342494)|c(Q3305213),P180,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q3330547
relation P180
type Q2342494
type Q3305213
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?w ) WHERE { VALUES ( ?c ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } . ?g rdf:type ?c } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { ?q rdf:type ?i . VALUES ( ?i ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } } . ?q property:P180 resource:Q3330547 } } . FILTER ( ?w = ?e ) }
fiddler acrobat milkmaid worker standard-bearer singer sheep shearer florist teacher bear hunter cobbler arriero 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 deacon wet nurse sailor clown spinner butcher military personnel midwife stonemason civil servant sower abbé architect street musician nurse parson flautist mathematician mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic helmsman ballet dancer harpsichordist rescuer VOC Opperhoofd in Japan drummer referee curate firefighter 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 alchemist American pioneer bishop joiner goatherd pedicure courtesan member of parliament bartender clogmaker peddler reaper condottiero canon 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 matador goldsmith waterseller pretender astronomer surgeon domestic worker cook embroiderer high-ranking civil servant in France exotic dancer lyricist plasterer gardener composer miller tightrope walker lady's maid sport cyclist apprentice King of France woodcutter lacemaker Snake charming carpenter school teacher officer baker knife grinder police officer guard Maid of honour kazasker madam archbishop boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric basketry mail carrier artisan bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
189
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity chronicler
relation depicts
type collectable
type painting
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?w ) WHERE { VALUES ( ?c ) { ( ontology:collectable ) ( ontology:painting ) } . ?g rdf:type ?c } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { ?q rdf:type ?i . VALUES ( ?i ) { ( ontology:collectable ) ( ontology:painting ) } } . ?q property:depicts resource:chronicler } } . FILTER ( ?w = ?e ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q549322
P180
Q12737077 Q2342494 Q3305213
USER
And what about torero?
(c(Q2342494)|c(Q3305213),P180,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q549322
relation P180
type Q2342494
type Q3305213
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?w WHERE { { ?c property:P180 ?w . ?c rdf:type ontology:Q2342494 . ?w rdf:type ontology:Q12737077 } UNION { ?w rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q3305213 . ?c property:P180 ?w } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a property:P180 resource:Q549322 . { { ?a rdf:type ontology:Q2342494 } UNION { ?a rdf:type ontology:Q3305213 } } } } . FILTER ( ?f = ?q ) }
torero
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity torero
relation depicts
type collectable
type painting
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?w WHERE { { ?c property:depicts ?w . ?c rdf:type ontology:collectable . ?w rdf:type ontology:occupation } UNION { ?w rdf:type ontology:occupation . ?c rdf:type ontology:painting . ?c property:depicts ?w } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a property:depicts resource:torero . { { ?a rdf:type ontology:collectable } UNION { ?a rdf:type ontology:painting } } } } . FILTER ( ?f = ?q ) }
[]
occupation collectable painting
SYSTEM
189
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q177220 Q1569439 Q16735601 Q37226 Q27621374 Q152355 Q1218776 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q1250916 Q4610556 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q47064 Q185196 Q328325 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q12902372 Q170790 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q2309900 Q805221 Q5371902 Q17126809 Q848550 Q386854 Q202648 Q1753370 Q107711 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q855855 Q548320 Q550594 Q3074722 Q19862215 Q19546 Q6116659 Q537575 Q20826540 Q715301 Q11338576 Q622630 Q3330547 Q3214532 Q15954519 Q2981922 Q29182 Q326358 Q5575361 Q1161133 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q54128 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 Q1511216 Q16533 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q1627992 Q2309784 Q253567 Q3439798 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q765541 Q2011889 Q49476 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q373017 Q2180295 Q1294787 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q2342494)|c(Q3305213),P180,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q549322
relation P180
type Q2342494
type Q3305213
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?w WHERE { { ?c property:P180 ?w . ?c rdf:type ontology:Q2342494 . ?w rdf:type ontology:Q12737077 } UNION { ?w rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q3305213 . ?c property:P180 ?w } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a property:P180 resource:Q549322 . { { ?a rdf:type ontology:Q2342494 } UNION { ?a rdf:type ontology:Q3305213 } } } } . FILTER ( ?f = ?q ) }
fiddler acrobat milkmaid worker standard-bearer singer sheep shearer florist teacher bear hunter cobbler arriero 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 deacon wet nurse sailor clown spinner butcher military personnel midwife stonemason civil servant sower abbé architect street musician nurse parson flautist mathematician mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic helmsman ballet dancer harpsichordist rescuer VOC Opperhoofd in Japan drummer referee curate firefighter 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 alchemist American pioneer bishop joiner goatherd pedicure courtesan member of parliament bartender clogmaker peddler reaper condottiero canon 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 matador goldsmith waterseller pretender astronomer surgeon domestic worker cook embroiderer high-ranking civil servant in France exotic dancer lyricist plasterer gardener composer miller tightrope walker lady's maid sport cyclist apprentice King of France woodcutter lacemaker Snake charming carpenter school teacher officer baker knife grinder police officer guard Maid of honour kazasker madam archbishop boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric basketry mail carrier artisan bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
189
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity torero
relation depicts
type collectable
type painting
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?w WHERE { { ?c property:depicts ?w . ?c rdf:type ontology:collectable . ?w rdf:type ontology:occupation } UNION { ?w rdf:type ontology:occupation . ?c rdf:type ontology:painting . ?c property:depicts ?w } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a property:depicts resource:torero . { { ?a rdf:type ontology:collectable } UNION { ?a rdf:type ontology:painting } } } } . FILTER ( ?f = ?q ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q15709879 Q3516658
USER
Which occupations are expressed in atmost 1 artwork series or heraldic symbols ?
(c(Q15709879)|c(Q3516658),P180,c(Q12737077))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
value 1
[[{'concept': 'Q15709879'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?g ) AS ?z ) WHERE { { ?g property:P180 ?a . ?a rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q3516658 } UNION { ?g property:P180 ?a . ?a rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q15709879 } } GROUP BY ?a } . FILTER ( ?z <= 1 ) }
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
value 1
[[{'concept': 'artwork series'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?g ) AS ?z ) WHERE { { ?g property:depicts ?a . ?a rdf:type ontology:occupation . ?g rdf:type ontology:heraldic_symbol } UNION { ?g property:depicts ?a . ?a rdf:type ontology:occupation . ?g rdf:type ontology:artwork_series } } GROUP BY ?a } . FILTER ( ?z <= 1 ) }
[]
occupation artwork series heraldic symbol
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 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 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 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(Q15709879)|c(Q3516658),P180,c(Q12737077))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
value 1
[ANSWERS] are expressed in atmost 1 artwork series or heraldic symbols
[[{'concept': 'Q15709879'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?g ) AS ?z ) WHERE { { ?g property:P180 ?a . ?a rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q3516658 } UNION { ?g property:P180 ?a . ?a rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q15709879 } } GROUP BY ?a } . FILTER ( ?z <= 1 ) }
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 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 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 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 expressed in atmost 1 artwork series or heraldic symbols
farmer nurse tailor
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
value 1
[[{'concept': 'artwork series'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?g ) AS ?z ) WHERE { { ?g property:depicts ?a . ?a rdf:type ontology:occupation . ?g rdf:type ontology:heraldic_symbol } UNION { ?g property:depicts ?a . ?a rdf:type ontology:occupation . ?g rdf:type ontology:artwork_series } } GROUP BY ?a } . FILTER ( ?z <= 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q186360
P417
Q502895
USER
What are the names of the patron saint of that occupation ?
(Q186360,P417,c(Q502895))
action filter_type
action find
entity Q186360
relation P417
type Q502895
['Q186360', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q186360 property:P417 ?r . ?r rdf:type ontology:Q502895 }
nurse
action filter_type
action find
entity nurse
relation patron saint
type common name
['nurse', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:nurse property:patron_saint ?r . ?r rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q242468
SYSTEM
Did you mean tailor ?
Q131512 Q186360 Q242468
(Q131512,P417,c(Q502895)) (Q186360,P417,c(Q502895)) (Q242468,P417,c(Q502895))
[ANSWER]
['Q131512', 'P417', {'concept': 'Q502895'}] ['Q186360', 'P417', {'concept': 'Q502895'}] ['Q242468', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q186360 property:P417 ?r . ?r rdf:type ontology:Q502895 }
farmer nurse tailor
Did you mean tailor ?
tailor
['farmer', 'patron saint', {'concept': 'common name'}] ['nurse', 'patron saint', {'concept': 'common name'}] ['tailor', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:nurse property:patron_saint ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant nurse. Could you tell me the answer for that?
(Q186360,P417,c(Q502895))
Q186360
['Q186360', 'P417', {'concept': 'Q502895'}]
['nurse', 'patron saint', {'concept': 'common name'}]
[]
Q179718 Q229190 Q332656
SYSTEM
Catherine of Alexandria, Catherine of Siena, Camillus de Lellis
Q332656 Q200895 Q229190 Q137947 Q179718
(Q186360,P417,c(Q502895))
action filter_type
action find
entity Q186360
relation P417
type Q502895
The names of the patron saint of that occupation are [ANSWERS]
['Q186360', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q186360 property:P417 ?r . ?r rdf:type ontology:Q502895 }
Camillus de Lellis Agatha of Sicily Catherine of Siena Alexius of Rome Catherine of Alexandria
The names of the patron saint of that occupation are Catherine of Alexandria, Catherine of Siena and Camillus de Lellis
Catherine of Alexandria Catherine of Siena Camillus de Lellis
action filter_type
action find
entity nurse
relation patron saint
type common name
['nurse', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:nurse property:patron_saint ?r . ?r rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q186360
P417
Q12737077
USER
Do nurse have those people as their patron saint ?
(Q186360,P417,Q179718) (Q186360,P417,Q229190) (Q186360,P417,Q332656)
action is_in
entity prev_answer
action find
entity Q186360
relation P417
['Q186360', 'P417', 'Q179718'] ['Q186360', 'P417', 'Q229190'] ['Q186360', 'P417', 'Q332656']
ASK WHERE { resource:Q186360 property:P417 ?l . VALUES ( ?l ) { ( resource:Q332656 ) ( resource:Q200895 ) ( resource:Q229190 ) } }
nurse
action is_in
entity prev_answer
action find
entity nurse
relation patron saint
['nurse', 'patron saint', 'Catherine of Alexandria'] ['nurse', 'patron saint', 'Catherine of Siena'] ['nurse', 'patron saint', 'Camillus de Lellis']
ASK WHERE { resource:nurse property:patron_saint ?l . VALUES ( ?l ) { ( resource:Camillus_de_Lellis ) ( resource:Agatha_of_Sicily ) ( resource:Catherine_of_Siena ) } }
[]
occupation
SYSTEM
YES
(Q186360,P417,Q179718) (Q186360,P417,Q229190) (Q186360,P417,Q332656)
action is_in
entity prev_answer
action find
entity Q186360
relation P417
[ANSWER]
['Q186360', 'P417', 'Q179718'] ['Q186360', 'P417', 'Q229190'] ['Q186360', 'P417', 'Q332656']
ASK WHERE { resource:Q186360 property:P417 ?l . VALUES ( ?l ) { ( resource:Q332656 ) ( resource:Q200895 ) ( resource:Q229190 ) } }
Yes
action is_in
entity prev_answer
action find
entity nurse
relation patron saint
['nurse', 'patron saint', 'Catherine of Alexandria'] ['nurse', 'patron saint', 'Catherine of Siena'] ['nurse', 'patron saint', 'Camillus de Lellis']
ASK WHERE { resource:nurse property:patron_saint ?l . VALUES ( ?l ) { ( resource:Camillus_de_Lellis ) ( resource:Agatha_of_Sicily ) ( resource:Catherine_of_Siena ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q242468
P106 P21
Q502895
USER
Which people have the profession of tailor and are a male ?
AND((c(Q502895),P106,Q242468), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q242468
relation P106
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q242468'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?s WHERE { ?s property:P106 resource:Q242468 . ?s property:P21 resource:Q6581097 . ?s rdf:type ontology:Q502895 }
male tailor
action filter_type
action intersection
action find_reverse
entity tailor
relation occupation
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'tailor'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?s WHERE { ?s property:occupation resource:tailor . ?s property:gender resource:male . ?s rdf:type ontology:common_name }
[]
common name
Q20871024 Q6257882 Q124060 Q1079633 Q9028045 Q19964059 Q3771122 Q18672179 Q1176477 Q7146930
SYSTEM
Some of them are Peter Shorrocks, John Simmons, Jakob Ammann, Christian Friedrich Mentel, Manuel Pertegaz, Joachim Peter Perlin, Giuseppe Ottaviani, Robert Hill, Imre Mező, Patrick Kelly
Q16943443 Q1704708 Q26449097 Q10376368 Q7146930 Q330752 Q24264230 Q21030814 Q3173181 Q7792128 Q21486108 Q20871024 Q9139586 Q3771122 Q9028045 Q27089509 Q19974227 Q16210035 Q1079633 Q19845356 Q4411860 Q1459228 Q1357639 Q15811961 Q595291 Q27117341 Q18529336 Q7412064 Q1699225 Q26220768 Q110131 Q1176477 Q20888454 Q363046 Q2232889 Q936206 Q3359235 Q330009 Q5331658 Q112070 Q6257882 Q3557728 Q21903477 Q104093 Q3436888 Q1530772 Q16607482 Q19964059 Q72876 Q18672179 Q805616 Q11934591 Q5713698 Q19956451 Q5906013 Q2644430 Q5546925 Q21043151 Q19279532 Q713064 Q8077873 Q15812064 Q27832165 Q16864282 Q95520 Q124060
AND((c(Q502895),P106,Q242468), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q242468
relation P106
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have the profession of tailor and are a male
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q242468'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?s WHERE { ?s property:P106 resource:Q242468 . ?s property:P21 resource:Q6581097 . ?s rdf:type ontology:Q502895 }
Climent Peix i Armengou Josef Gunkel Jussi Tirkkonen Sílvio João de Oliveira Patrick Kelly Abraham Zapruder W. D. F. Vincent Simon Porte Jacquemus Jean Leperdit Thomas Mahon Robert Buchanan Peter Shorrocks Adam Giedrys Giuseppe Ottaviani Manuel Pertegaz Israël Rubin George Smart Martin Greenfield Christian Friedrich Mentel Martin Marmontel Arman Alizad Friedrich Georg Göthe Ernst Braun Gerhard Schwedka Anton Weidinger Huna Caisman Fran Bartl Samuel Lyons John Badby T. A. Flynn Franz Muller Imre Mező Johann Christoph Winters Christian Mortensen Ab van der Steur Bernhard Willhelm Ozwald Boateng Romeo Gigli Ebenezer Butterick Franz Reichelt John Simmons Victorien Bruguier Peter P. Acritelli Wilhelm Krasnapolsky Đuro Salaj Wilhelm Bergers Miguel Ángel Sandoval Joachim Peter Perlin Günter Litfin Robert Hill Balthasar Kestner Magí Pers i Ramona Hendrick Hendricksen Kip Lionel Cros Héctor Atilio Delmar Alfons Müller-Wipperfürth Georges de Paris Juan de Alcega Felix Imre Artin Penik Éamon a Búrc Gert Weber Majer Belfer Henry Creed Johann Eccarius Jakob Ammann
Peter Shorrocks, John Simmons, Jakob Ammann, Christian Friedrich Mentel, Manuel Pertegaz, Joachim Peter Perlin, Giuseppe Ottaviani, Robert Hill, Imre Mező and Patrick Kelly have the profession of tailor and are a male
Peter Shorrocks John Simmons Jakob Ammann Christian Friedrich Mentel Manuel Pertegaz Joachim Peter Perlin Giuseppe Ottaviani Robert Hill Imre Mező Patrick Kelly
action filter_type
action intersection
action find_reverse
entity tailor
relation occupation
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'tailor'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?s WHERE { ?s property:occupation resource:tailor . ?s property:gender resource:male . ?s rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q131512 Q34201
P921
Q191067
USER
How many articles are farmer or Zeus a main subject of ?
(c(Q191067),P921,Q131512) (c(Q191067),P921,Q34201)
action count
action union
action filter_type
action find_reverse
entity Q131512
relation P921
type Q191067
action filter_type
action find_reverse
entity Q34201
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q131512'] [{'concept': 'Q191067'}, 'P921', 'Q34201']
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { ?o rdf:type ontology:Q191067 . ?o property:P921 resource:Q131512 } UNION { ?o property:P921 resource:Q34201 . ?o rdf:type ontology:Q191067 } }
farmer Zeus
action count
action union
action filter_type
action find_reverse
entity farmer
relation main subject
type article
action filter_type
action find_reverse
entity Zeus
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'farmer'] [{'concept': 'article'}, 'main subject', 'Zeus']
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { ?o rdf:type ontology:article . ?o property:main_subject resource:farmer } UNION { ?o property:main_subject resource:Zeus . ?o rdf:type ontology:article } }
[]
article
SYSTEM
2
Q24054150 Q24054184
(c(Q191067),P921,Q131512) (c(Q191067),P921,Q34201)
action count
action union
action filter_type
action find_reverse
entity Q131512
relation P921
type Q191067
action filter_type
action find_reverse
entity Q34201
relation P921
type Q191067
[ANSWER]
[{'concept': 'Q191067'}, 'P921', 'Q131512'] [{'concept': 'Q191067'}, 'P921', 'Q34201']
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { ?o rdf:type ontology:Q191067 . ?o property:P921 resource:Q131512 } UNION { ?o property:P921 resource:Q34201 . ?o rdf:type ontology:Q191067 } }
NSRW / Zeus EB-11 / Zeus
2
action count
action union
action filter_type
action find_reverse
entity farmer
relation main subject
type article
action filter_type
action find_reverse
entity Zeus
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'farmer'] [{'concept': 'article'}, 'main subject', 'Zeus']
SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { ?o rdf:type ontology:article . ?o property:main_subject resource:farmer } UNION { ?o property:main_subject resource:Zeus . ?o rdf:type ontology:article } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q15614636
P725
Q502895 Q6619679
USER
How many fictional humanoids did more number of people do the dubbing for than Anna (Disney) ?
(c(Q6619679),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q6619679
type Q502895
action count
action filter_type
action find
entity Q15614636
relation P725
type Q6619679
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?w ) WHERE { ?b property:P725 ?o . ?o rdf:type ontology:Q502895 . ?b rdf:type ontology:Q6619679 } GROUP BY ?b } . FILTER ( ?w > ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { resource:Q15614636 property:P725 ?z . ?z rdf:type ontology:Q6619679 } } }
Anna (Disney)
action count
action greater
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
action count
action filter_type
action find
entity Anna (Disney)
relation voice actor
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?w ) WHERE { ?b property:voice_actor ?o . ?o rdf:type ontology:common_name . ?b rdf:type ontology:fictional_humanoid } GROUP BY ?b } . FILTER ( ?w > ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { resource:Anna_(Disney) property:voice_actor ?z . ?z rdf:type ontology:fictional_humanoid } } }
[]
common name fictional humanoid
SYSTEM
20
Q15707554 Q11609133 Q15726751 Q11479883 Q994344 Q11677249 Q718965 Q3784876 Q1148698 Q11382982 Q18073923 Q18156023 Q6989902 Q11514862 Q15726744 Q601978 Q19796729 Q931 Q15711517 Q716636
(c(Q6619679),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q6619679
type Q502895
action count
action filter_type
action find
entity Q15614636
relation P725
type Q6619679
[ANSWER]
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?w ) WHERE { ?b property:P725 ?o . ?o rdf:type ontology:Q502895 . ?b rdf:type ontology:Q6619679 } GROUP BY ?b } . FILTER ( ?w > ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { resource:Q15614636 property:P725 ?z . ?z rdf:type ontology:Q6619679 } } }
Apple Bloom Sayaka Miki Diamond Tiara Mami Tomoe Ezio Auditore da Firenze Madoka Kaname Hinata Hyuga Henrietta Ai Haibara Kyoko Sakura Sunset Shimmer Maud Pie Neku Sakuraba Homura Akemi Silver Spoon Kyon Michelle Naruto Uzumaki Granny Smith Mr. Burns
20
action count
action greater
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
action count
action filter_type
action find
entity Anna (Disney)
relation voice actor
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?w ) WHERE { ?b property:voice_actor ?o . ?o rdf:type ontology:common_name . ?b rdf:type ontology:fictional_humanoid } GROUP BY ?b } . FILTER ( ?w > ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { resource:Anna_(Disney) property:voice_actor ?z . ?z rdf:type ontology:fictional_humanoid } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1154920
P725
Q502895 Q6619679
USER
And how about Father Grigori?
(c(Q6619679),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q6619679
type Q502895
action count
action filter_type
action find
entity Q1154920
relation P725
type Q6619679
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?q ) WHERE { ?b property:P725 ?w . ?b rdf:type ontology:Q6619679 . ?w rdf:type ontology:Q502895 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { resource:Q1154920 property:P725 ?f . ?f rdf:type ontology:Q6619679 } } . FILTER ( ?q > ?a ) }
Father Grigori
action count
action greater
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
action count
action filter_type
action find
entity Father Grigori
relation voice actor
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?q ) WHERE { ?b property:voice_actor ?w . ?b rdf:type ontology:fictional_humanoid . ?w rdf:type ontology:common_name } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { resource:Father_Grigori property:voice_actor ?f . ?f rdf:type ontology:fictional_humanoid } } . FILTER ( ?q > ?a ) }
[]
common name fictional humanoid
SYSTEM
20
Q15707554 Q11609133 Q15726751 Q11479883 Q994344 Q11677249 Q718965 Q3784876 Q1148698 Q11382982 Q18073923 Q18156023 Q6989902 Q11514862 Q15726744 Q601978 Q19796729 Q931 Q15711517 Q716636
(c(Q6619679),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q6619679
type Q502895
action count
action filter_type
action find
entity Q1154920
relation P725
type Q6619679
[ANSWER]
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?q ) WHERE { ?b property:P725 ?w . ?b rdf:type ontology:Q6619679 . ?w rdf:type ontology:Q502895 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { resource:Q1154920 property:P725 ?f . ?f rdf:type ontology:Q6619679 } } . FILTER ( ?q > ?a ) }
Apple Bloom Sayaka Miki Diamond Tiara Mami Tomoe Ezio Auditore da Firenze Madoka Kaname Hinata Hyuga Henrietta Ai Haibara Kyoko Sakura Sunset Shimmer Maud Pie Neku Sakuraba Homura Akemi Silver Spoon Kyon Michelle Naruto Uzumaki Granny Smith Mr. Burns
20
action count
action greater
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
action count
action filter_type
action find
entity Father Grigori
relation voice actor
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?q ) WHERE { ?b property:voice_actor ?w . ?b rdf:type ontology:fictional_humanoid . ?w rdf:type ontology:common_name } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { resource:Father_Grigori property:voice_actor ?f . ?f rdf:type ontology:fictional_humanoid } } . FILTER ( ?q > ?a ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q50116 Q9028045
P47 P27
Q15617994
USER
Which administrative territories are the native countriesof Manuel Pertegaz or share border with Ortona dei Marsi ?
OR((Q9028045,P27,c(Q15617994)), (Q50116,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q9028045
relation P27
action find
entity Q50116
relation P47
type Q15617994
{'OR': [['Q9028045', 'P27', {'concept': 'Q15617994'}], ['Q50116', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q9028045 property:P27 ?g } UNION { resource:Q50116 property:P47 ?g } } . ?g rdf:type ontology:Q15617994 }
Ortona dei Marsi Manuel Pertegaz
action filter_type
action union
action find
entity Manuel Pertegaz
relation country of citizenship
action find
entity Ortona dei Marsi
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Manuel Pertegaz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ortona dei Marsi', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Manuel_Pertegaz property:country_of_citizenship ?g } UNION { resource:Ortona_dei_Marsi property:shares_border_with ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q50096 Q47093 Q50169 Q50078 Q50122 Q49885 Q29 Q50085
SYSTEM
Gioia dei Marsi, Anversa degli Abruzzi, Villalago, Castelvecchio Subequo, Pescina, Bisegna, Spain, Cocullo
Q50096 Q47093 Q50169 Q50078 Q50122 Q49885 Q29 Q50085
OR((Q9028045,P27,c(Q15617994)), (Q50116,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q9028045
relation P27
action find
entity Q50116
relation P47
type Q15617994
[ANSWERS] are the native countriesof Manuel Pertegaz or share border with Ortona dei Marsi
{'OR': [['Q9028045', 'P27', {'concept': 'Q15617994'}], ['Q50116', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q9028045 property:P27 ?g } UNION { resource:Q50116 property:P47 ?g } } . ?g rdf:type ontology:Q15617994 }
Gioia dei Marsi Anversa degli Abruzzi Villalago Castelvecchio Subequo Pescina Bisegna Spain Cocullo
Gioia dei Marsi, Anversa degli Abruzzi, Villalago, Castelvecchio Subequo, Pescina, Bisegna, Spain and Cocullo are the native countriesof Manuel Pertegaz or share border with Ortona dei Marsi
Gioia dei Marsi Anversa degli Abruzzi Villalago Castelvecchio Subequo Pescina Bisegna Spain Cocullo
action filter_type
action union
action find
entity Manuel Pertegaz
relation country of citizenship
action find
entity Ortona dei Marsi
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Manuel Pertegaz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ortona dei Marsi', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Manuel_Pertegaz property:country_of_citizenship ?g } UNION { resource:Ortona_dei_Marsi property:shares_border_with ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
How many administrative territories did approximately the same number of releases originate as that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity release
Comparative|Count over More/Less|Single entity type|Clarification
Q50078
SYSTEM
Did you mean Castelvecchio Subequo ?
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Did you mean Castelvecchio Subequo ?
Castelvecchio Subequo
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Spain. Could you tell me the answer for that?
(c(Q2031291),P495,c(Q15617994))
Q29
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
168
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q145 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
168
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]