Simple Question (Direct)
Simple Question
Q1050194
P39
Q12737077
USER
Which occupation was a position occupied by Léger-Félicité Sonthonax ?
(Q1050194,P39,c(Q12737077))
action filter_type
action find
entity Q1050194
relation P39
type Q12737077
['Q1050194', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q12737077 . resource:Q1050194 property:P39 ?m }
Léger-Félicité Sonthonax
action filter_type
action find
entity Léger-Félicité Sonthonax
relation position held
type occupation
['Léger-Félicité Sonthonax', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:occupation . resource:Léger-Félicité_Sonthonax property:position_held ?m }
[]
occupation
Q3044918
SYSTEM
member of the French National Assembly
Q3044918
(Q1050194,P39,c(Q12737077))
action filter_type
action find
entity Q1050194
relation P39
type Q12737077
A member of the French National Assembly was a position occupied by Léger-Félicité Sonthonax
['Q1050194', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q12737077 . resource:Q1050194 property:P39 ?m }
member of the French National Assembly
A member of the French National Assembly was a position occupied by Léger-Félicité Sonthonax
member of the French National Assembly
action filter_type
action find
entity Léger-Félicité Sonthonax
relation position held
type occupation
['Léger-Félicité Sonthonax', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:occupation . resource:Léger-Félicité_Sonthonax property:position_held ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1050194
P106
Q7210356
USER
What does that person do for a living ?
(Q3044918,P106,c(Q7210356))
action filter_type
action find
entity Q1050194
relation P106
type Q7210356
['Q3044918', 'P106', {'concept': 'Q7210356'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q7210356 . resource:Q1050194 property:P106 ?s }
Léger-Félicité Sonthonax
action filter_type
action find
entity Léger-Félicité Sonthonax
relation occupation
type political organization
['member of the French\xa0National Assembly', 'occupation', {'concept': 'political organization'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:political_organization . resource:Léger-Félicité_Sonthonax property:occupation ?s }
[]
political organization
Q207776
SYSTEM
Girondist
Q207776
(Q3044918,P106,c(Q7210356))
action filter_type
action find
entity Q1050194
relation P106
type Q7210356
[ANSWER] that person does for a living
['Q3044918', 'P106', {'concept': 'Q7210356'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q7210356 . resource:Q1050194 property:P106 ?s }
Girondist
Girondist that person does for a living
Girondist
action filter_type
action find
entity Léger-Félicité Sonthonax
relation occupation
type political organization
['member of the French\xa0National Assembly', 'occupation', {'concept': 'political organization'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:political_organization . resource:Léger-Félicité_Sonthonax property:occupation ?s }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1050194
P19
Q20667921
USER
How many french administrative divisions are the places of birth of Léger-Félicité Sonthonax ?
(Q1050194,P19,c(Q20667921))
action count
action filter_type
action find
entity Q1050194
relation P19
type Q20667921
['Q1050194', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { resource:Q1050194 property:P19 ?f . ?f rdf:type ontology:Q20667921 }
Léger-Félicité Sonthonax
action count
action filter_type
action find
entity Léger-Félicité Sonthonax
relation place of birth
type type of french administrative division
['Léger-Félicité Sonthonax', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { resource:Léger-Félicité_Sonthonax property:place_of_birth ?f . ?f rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
1
Q191856
(Q1050194,P19,c(Q20667921))
action count
action filter_type
action find
entity Q1050194
relation P19
type Q20667921
[ANSWER]
['Q1050194', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { resource:Q1050194 property:P19 ?f . ?f rdf:type ontology:Q20667921 }
Oyonnax
1
action count
action filter_type
action find
entity Léger-Félicité Sonthonax
relation place of birth
type type of french administrative division
['Léger-Félicité Sonthonax', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { resource:Léger-Félicité_Sonthonax property:place_of_birth ?f . ?f rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q960643
P69
Q189533
USER
Which academic degree is the alma mater of Vincent Peillon ?
(Q960643,P69,c(Q189533))
action filter_type
action find
entity Q960643
relation P69
type Q189533
['Q960643', 'P69', {'concept': 'Q189533'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q189533 . resource:Q960643 property:P69 ?j }
Vincent Peillon
action filter_type
action find
entity Vincent Peillon
relation educated at
type academic degree
['Vincent Peillon', 'educated at', {'concept': 'academic degree'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:academic_degree . resource:Vincent_Peillon property:educated_at ?j }
[]
academic degree
Q2827292
SYSTEM
agrégation de philosophie
Q2827292
(Q960643,P69,c(Q189533))
action filter_type
action find
entity Q960643
relation P69
type Q189533
[ANSWER] is the alma mater of Vincent Peillon
['Q960643', 'P69', {'concept': 'Q189533'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q189533 . resource:Q960643 property:P69 ?j }
agrégation de philosophie
Agrégation de philosophie is the alma mater of Vincent Peillon
agrégation de philosophie
action filter_type
action find
entity Vincent Peillon
relation educated at
type academic degree
['Vincent Peillon', 'educated at', {'concept': 'academic degree'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:academic_degree . resource:Vincent_Peillon property:educated_at ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q960643
P937
Q56061
USER
Which is the work location of Vincent Peillon ?
(Q960643,P937,c(Q56061))
action filter_type
action find
entity Q960643
relation P937
type Q56061
['Q960643', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q960643 property:P937 ?e . ?e rdf:type ontology:Q56061 }
Vincent Peillon
action filter_type
action find
entity Vincent Peillon
relation work location
type administrative territorial entity
['Vincent Peillon', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Vincent_Peillon property:work_location ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q239
SYSTEM
Brussels
Q239
(Q960643,P937,c(Q56061))
action filter_type
action find
entity Q960643
relation P937
type Q56061
[ANSWER] is the work location of Vincent Peillon
['Q960643', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q960643 property:P937 ?e . ?e rdf:type ontology:Q56061 }
Brussels
Brussels is the work location of Vincent Peillon
Brussels
action filter_type
action find
entity Vincent Peillon
relation work location
type administrative territorial entity
['Vincent Peillon', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Vincent_Peillon property:work_location ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7025707
Q56061
USER
And what about Nicholas Kendall?
(Q7025707,P937,c(Q56061))
action filter_type
action find
entity Q7025707
relation P937
type Q56061
['Q7025707', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q7025707 property:P937 ?i . ?i rdf:type ontology:Q56061 }
Nicholas Kendall
action filter_type
action find
entity Nicholas Kendall
relation work location
type administrative territorial entity
['Nicholas Kendall', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Nicholas_Kendall property:work_location ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q7025707,P937,c(Q56061))
action filter_type
action find
entity Q7025707
relation P937
type Q56061
[ANSWER]
['Q7025707', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q7025707 property:P937 ?i . ?i rdf:type ontology:Q56061 }
London
London
action filter_type
action find
entity Nicholas Kendall
relation work location
type administrative territorial entity
['Nicholas Kendall', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Nicholas_Kendall property:work_location ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7025707
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
(Q84,P27,c(Q15617994))
action filter_type
action find
entity Q7025707
relation P27
type Q15617994
['Q84', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q7025707 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
Nicholas Kendall
action filter_type
action find
entity Nicholas Kendall
relation country of citizenship
type designation for an administrative territorial entity
['London', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Nicholas_Kendall property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q84,P27,c(Q15617994))
action filter_type
action find
entity Q7025707
relation P27
type Q15617994
[ANSWER] is the native country of that person
['Q84', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q7025707 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is the native country of that person
United Kingdom
action filter_type
action find
entity Nicholas Kendall
relation country of citizenship
type designation for an administrative territorial entity
['London', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Nicholas_Kendall property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q820037
P180
Q12737077 Q1792379 Q386724
USER
Which occupations are depicted in around the same number of art genres or works as miner ?
(c(Q1792379)|c(Q386724),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q820037
relation P180
type Q1792379
type Q386724
[[{'concept': 'Q1792379'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?o WHERE { VALUES ( ?a ) { ( ontology:Q1792379 ) ( ontology:Q386724 ) } . ?i rdf:type ?a } GROUP BY ?o } . FILTER ( ?w = ?j ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { { ?g rdf:type ?v . VALUES ( ?v ) { ( ontology:Q1792379 ) ( ontology:Q386724 ) } } . ?g property:P180 resource:Q820037 } } }
miner
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity miner
relation depicts
type art genre
type work
[[{'concept': 'art genre'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?o WHERE { VALUES ( ?a ) { ( ontology:art_genre ) ( ontology:work ) } . ?i rdf:type ?a } GROUP BY ?o } . FILTER ( ?w = ?j ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { { ?g rdf:type ?v . VALUES ( ?v ) { ( ontology:art_genre ) ( ontology:work ) } } . ?g property:depicts resource:miner } } }
[]
occupation art genre work
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 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 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 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 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 Q1294787 Q1630100 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q1792379)|c(Q386724),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q820037
relation P180
type Q1792379
type Q386724
[ANSWERS] are depicted in around the same number of art genres or works as miner
[[{'concept': 'Q1792379'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?o WHERE { VALUES ( ?a ) { ( ontology:Q1792379 ) ( ontology:Q386724 ) } . ?i rdf:type ?a } GROUP BY ?o } . FILTER ( ?w = ?j ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { { ?g rdf:type ?v . VALUES ( ?v ) { ( ontology:Q1792379 ) ( ontology:Q386724 ) } } . ?g property:P180 resource:Q820037 } } }
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 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 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 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 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 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 around the same number of art genres or works as miner
farmer nurse tailor
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity miner
relation depicts
type art genre
type work
[[{'concept': 'art genre'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) ?o WHERE { VALUES ( ?a ) { ( ontology:art_genre ) ( ontology:work ) } . ?i rdf:type ?a } GROUP BY ?o } . FILTER ( ?w = ?j ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { { ?g rdf:type ?v . VALUES ( ?v ) { ( ontology:art_genre ) ( ontology:work ) } } . ?g property:depicts resource:miner } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q15618890
P180
Q12737077 Q1792379 Q386724
USER
And what about ventriloquist?
(c(Q1792379)|c(Q386724),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q15618890
relation P180
type Q1792379
type Q386724
[[{'concept': 'Q1792379'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { ?q property:P180 resource:Q15618890 . { { ?q rdf:type ontology:Q1792379 } UNION { ?q rdf:type ontology:Q386724 } } } } . FILTER ( ?z = ?n ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?x WHERE { { ?x rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q386724 . ?t property:P180 ?x } UNION { ?t property:P180 ?x . ?x rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q1792379 } } GROUP BY ?x } }
ventriloquist
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity ventriloquist
relation depicts
type art genre
type work
[[{'concept': 'art genre'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { ?q property:depicts resource:ventriloquist . { { ?q rdf:type ontology:art_genre } UNION { ?q rdf:type ontology:work } } } } . FILTER ( ?z = ?n ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?x WHERE { { ?x rdf:type ontology:occupation . ?t rdf:type ontology:work . ?t property:depicts ?x } UNION { ?t property:depicts ?x . ?x rdf:type ontology:occupation . ?t rdf:type ontology:art_genre } } GROUP BY ?x } }
[]
occupation art genre work
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 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 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 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 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 Q1294787 Q1630100 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q1792379)|c(Q386724),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q15618890
relation P180
type Q1792379
type Q386724
[ANSWERS]
[[{'concept': 'Q1792379'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { ?q property:P180 resource:Q15618890 . { { ?q rdf:type ontology:Q1792379 } UNION { ?q rdf:type ontology:Q386724 } } } } . FILTER ( ?z = ?n ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?x WHERE { { ?x rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q386724 . ?t property:P180 ?x } UNION { ?t property:P180 ?x . ?x rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q1792379 } } GROUP BY ?x } }
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 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 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 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 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 artisan art model bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
farmer nurse tailor
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity ventriloquist
relation depicts
type art genre
type work
[[{'concept': 'art genre'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { ?q property:depicts resource:ventriloquist . { { ?q rdf:type ontology:art_genre } UNION { ?q rdf:type ontology:work } } } } . FILTER ( ?z = ?n ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?x WHERE { { ?x rdf:type ontology:occupation . ?t rdf:type ontology:work . ?t property:depicts ?x } UNION { ?t property:depicts ?x . ?x rdf:type ontology:occupation . ?t rdf:type ontology:art_genre } } GROUP BY ?x } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P138
Q79007 Q811430
USER
How many streets or constructions are the eponym of that occupation ?
(c(Q79007),P138,Q242468) (c(Q811430),P138,Q242468) (c(Q79007),P138,Q131512) (c(Q811430),P138,Q131512) (c(Q79007),P138,Q186360) (c(Q811430),P138,Q186360) (c(Q79007),P138,Q242468) (c(Q811430),P138,Q242468)
[{'concept': 'Q79007'}, 'P138', 'Q242468'] [{'concept': 'Q811430'}, 'P138', 'Q242468'] [{'concept': 'Q79007'}, 'P138', 'Q131512'] [{'concept': 'Q811430'}, 'P138', 'Q131512'] [{'concept': 'Q79007'}, 'P138', 'Q186360'] [{'concept': 'Q811430'}, 'P138', 'Q186360'] [{'concept': 'Q79007'}, 'P138', 'Q242468'] [{'concept': 'Q811430'}, 'P138', 'Q242468']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P138 resource:Q242468 } UNION { ?y property:P138 resource:Q242468 } UNION { ?z property:P138 resource:Q131512 } UNION { ?y property:P138 resource:Q131512 } UNION { ?z property:P138 resource:Q186360 } UNION { ?y property:P138 resource:Q186360 } UNION { ?z property:P138 resource:Q242468 } UNION { ?y property:P138 resource:Q242468 } } . ?z rdf:type ontology:Q79007 . ?y rdf:type ontology:Q385378 }
[{'concept': 'street'}, 'named after', 'tailor'] [{'concept': 'construction'}, 'named after', 'tailor'] [{'concept': 'street'}, 'named after', 'farmer'] [{'concept': 'construction'}, 'named after', 'farmer'] [{'concept': 'street'}, 'named after', 'nurse'] [{'concept': 'construction'}, 'named after', 'nurse'] [{'concept': 'street'}, 'named after', 'tailor'] [{'concept': 'construction'}, 'named after', 'tailor']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:named_after resource:tailor } UNION { ?y property:named_after resource:tailor } UNION { ?z property:named_after resource:farmer } UNION { ?y property:named_after resource:farmer } UNION { ?z property:named_after resource:nurse } UNION { ?y property:named_after resource:nurse } UNION { ?z property:named_after resource:tailor } UNION { ?y property:named_after resource:tailor } } . ?z rdf:type ontology:street . ?y rdf:type ontology:construction }
[]
street construction
Quantitative|Count|Mult. entity type|Clarification
Q186360
SYSTEM
Did you mean nurse ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P138 resource:Q242468 } UNION { ?y property:P138 resource:Q242468 } UNION { ?z property:P138 resource:Q131512 } UNION { ?y property:P138 resource:Q131512 } UNION { ?z property:P138 resource:Q186360 } UNION { ?y property:P138 resource:Q186360 } UNION { ?z property:P138 resource:Q242468 } UNION { ?y property:P138 resource:Q242468 } } . ?z rdf:type ontology:Q79007 . ?y rdf:type ontology:Q385378 }
Did you mean nurse ?
nurse
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:named_after resource:tailor } UNION { ?y property:named_after resource:tailor } UNION { ?z property:named_after resource:farmer } UNION { ?y property:named_after resource:farmer } UNION { ?z property:named_after resource:nurse } UNION { ?y property:named_after resource:nurse } UNION { ?z property:named_after resource:tailor } UNION { ?y property:named_after resource:tailor } } . ?z rdf:type ontology:street . ?y rdf:type ontology:construction }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant tailor. Could you tell me the answer for that?
(c(Q79007),P138,Q242468) (c(Q811430),P138,Q242468) (c(Q79007),P138,Q131512) (c(Q811430),P138,Q131512) (c(Q79007),P138,Q186360) (c(Q811430),P138,Q186360) (c(Q79007),P138,Q242468) (c(Q811430),P138,Q242468)
Q242468
[{'concept': 'Q79007'}, 'P138', 'Q242468'] [{'concept': 'Q811430'}, 'P138', 'Q242468'] [{'concept': 'Q79007'}, 'P138', 'Q131512'] [{'concept': 'Q811430'}, 'P138', 'Q131512'] [{'concept': 'Q79007'}, 'P138', 'Q186360'] [{'concept': 'Q811430'}, 'P138', 'Q186360'] [{'concept': 'Q79007'}, 'P138', 'Q242468'] [{'concept': 'Q811430'}, 'P138', 'Q242468']
[{'concept': 'street'}, 'named after', 'tailor'] [{'concept': 'construction'}, 'named after', 'tailor'] [{'concept': 'street'}, 'named after', 'farmer'] [{'concept': 'construction'}, 'named after', 'farmer'] [{'concept': 'street'}, 'named after', 'nurse'] [{'concept': 'construction'}, 'named after', 'nurse'] [{'concept': 'street'}, 'named after', 'tailor'] [{'concept': 'construction'}, 'named after', 'tailor']
[]
SYSTEM
2
Q7536834 Q10670629
(c(Q79007),P138,Q242468) (c(Q811430),P138,Q242468) (c(Q79007),P138,Q131512) (c(Q811430),P138,Q131512) (c(Q79007),P138,Q186360) (c(Q811430),P138,Q186360) (c(Q79007),P138,Q242468) (c(Q811430),P138,Q242468)
[ANSWER]
[{'concept': 'Q79007'}, 'P138', 'Q242468'] [{'concept': 'Q811430'}, 'P138', 'Q242468'] [{'concept': 'Q79007'}, 'P138', 'Q131512'] [{'concept': 'Q811430'}, 'P138', 'Q131512'] [{'concept': 'Q79007'}, 'P138', 'Q186360'] [{'concept': 'Q811430'}, 'P138', 'Q186360'] [{'concept': 'Q79007'}, 'P138', 'Q242468'] [{'concept': 'Q811430'}, 'P138', 'Q242468']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P138 resource:Q242468 } UNION { ?y property:P138 resource:Q242468 } UNION { ?z property:P138 resource:Q131512 } UNION { ?y property:P138 resource:Q131512 } UNION { ?z property:P138 resource:Q186360 } UNION { ?y property:P138 resource:Q186360 } UNION { ?z property:P138 resource:Q242468 } UNION { ?y property:P138 resource:Q242468 } } . ?z rdf:type ontology:Q79007 . ?y rdf:type ontology:Q385378 }
Skräddargränd Skräddaregatan
2
[{'concept': 'street'}, 'named after', 'tailor'] [{'concept': 'construction'}, 'named after', 'tailor'] [{'concept': 'street'}, 'named after', 'farmer'] [{'concept': 'construction'}, 'named after', 'farmer'] [{'concept': 'street'}, 'named after', 'nurse'] [{'concept': 'construction'}, 'named after', 'nurse'] [{'concept': 'street'}, 'named after', 'tailor'] [{'concept': 'construction'}, 'named after', 'tailor']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:named_after resource:tailor } UNION { ?y property:named_after resource:tailor } UNION { ?z property:named_after resource:farmer } UNION { ?y property:named_after resource:farmer } UNION { ?z property:named_after resource:nurse } UNION { ?y property:named_after resource:nurse } UNION { ?z property:named_after resource:tailor } UNION { ?y property:named_after resource:tailor } } . ?z rdf:type ontology:street . ?y rdf:type ontology:construction }
[]