Simple Question (Direct)
Simple Question
Q3384423
P106
Q12737077
USER
What is the job of Pierre Chevallier ?
(Q3384423,P106,c(Q12737077))
action filter_type
action find
entity Q3384423
relation P106
type Q12737077
['Q3384423', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q3384423 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
Pierre Chevallier
action filter_type
action find
entity Pierre Chevallier
relation occupation
type occupation
['Pierre Chevallier', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Pierre_Chevallier property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q3384423,P106,c(Q12737077))
action filter_type
action find
entity Q3384423
relation P106
type Q12737077
The job of Pierre Chevallier is a [ANSWER]
['Q3384423', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q3384423 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
politician
The job of Pierre Chevallier is a politician
politician
action filter_type
action find
entity Pierre Chevallier
relation occupation
type occupation
['Pierre Chevallier', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Pierre_Chevallier property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q82955
P425
Q3769299
USER
Who has that one as the associated field of occupation ?
(Q82955,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
['Q82955', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?r WHERE { resource:Q82955 property:P425 ?r . ?r rdf:type ontology:Q3769299 }
politician
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['politician', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?r WHERE { resource:politician property:field_of_this_occupation ?r . ?r rdf:type ontology:human_behaviour }
[]
human behaviour
Q7163
SYSTEM
politics
Q7163
(Q82955,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
[ANSWER] has that one as the associated field of occupation
['Q82955', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?r WHERE { resource:Q82955 property:P425 ?r . ?r rdf:type ontology:Q3769299 }
politics
Politics has that one as the associated field of occupation
politics
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['politician', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?r WHERE { resource:politician property:field_of_this_occupation ?r . ?r rdf:type ontology:human_behaviour }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saint of max number of occupations ?
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?m ) { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?b ) WHERE { ?n property:P417 ?r . ?n rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q502895 } GROUP BY ?r } } . { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?k ) WHERE { ?i property:P417 ?j . ?i rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q502895 } GROUP BY ?j } . FILTER ( ?k = ?m ) }
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?m ) { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?b ) WHERE { ?n property:patron_saint ?r . ?n rdf:type ontology:occupation . ?r rdf:type ontology:common_name } GROUP BY ?r } } . { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?k ) WHERE { ?i property:patron_saint ?j . ?i rdf:type ontology:occupation . ?j rdf:type ontology:common_name } GROUP BY ?j } . FILTER ( ?k = ?m ) }
[]
common name occupation
Q179718
SYSTEM
Catherine of Alexandria
Q179718
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[ANSWER] is the patron saint of max number of occupations
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?m ) { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?b ) WHERE { ?n property:P417 ?r . ?n rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q502895 } GROUP BY ?r } } . { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?k ) WHERE { ?i property:P417 ?j . ?i rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q502895 } GROUP BY ?j } . FILTER ( ?k = ?m ) }
Catherine of Alexandria
Catherine of Alexandria is the patron saint of max number of occupations
Catherine of Alexandria
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?m ) { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?b ) WHERE { ?n property:patron_saint ?r . ?n rdf:type ontology:occupation . ?r rdf:type ontology:common_name } GROUP BY ?r } } . { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?k ) WHERE { ?i property:patron_saint ?j . ?i rdf:type ontology:occupation . ?j rdf:type ontology:common_name } GROUP BY ?j } . FILTER ( ?k = ?m ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3384423
P734
Q82799
USER
Who is associated with Pierre Chevallier ?
(Q3384423,P734,c(Q82799))
action filter_type
action find
entity Q3384423
relation P734
type Q82799
['Q3384423', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q3384423 property:P734 ?d . ?d rdf:type ontology:Q82799 }
Pierre Chevallier
action filter_type
action find
entity Pierre Chevallier
relation family name
type name
['Pierre Chevallier', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Pierre_Chevallier property:family_name ?d . ?d rdf:type ontology:name }
[]
name
Q25340706
SYSTEM
Chevallier
Q25340706
(Q3384423,P734,c(Q82799))
action filter_type
action find
entity Q3384423
relation P734
type Q82799
[ANSWER] is associated with Pierre [ANSWER]
['Q3384423', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q3384423 property:P734 ?d . ?d rdf:type ontology:Q82799 }
Chevallier
Chevallier is associated with Pierre Chevallier
Chevallier
action filter_type
action find
entity Pierre Chevallier
relation family name
type name
['Pierre Chevallier', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Pierre_Chevallier property:family_name ?d . ?d rdf:type ontology:name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q18783400 Q11060274
USER
Which occupations are depicted in atmost 3 genres of sculpture and prints ?
(c(Q18783400)|c(Q11060274),P180,c(Q12737077))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
value 3
[[{'concept': 'Q18783400'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) ?r WHERE { VALUES ( ?f ) { ( ontology:Q18783400 ) ( ontology:Q11060274 ) } . ?n rdf:type ?f } GROUP BY ?r } . FILTER ( ?b <= 3 ) }
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type occupation
type print
value 3
[[{'concept': 'genre of sculpture'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) ?r WHERE { VALUES ( ?f ) { ( ontology:genre_of_sculpture ) ( ontology:print ) } . ?n rdf:type ?f } GROUP BY ?r } . FILTER ( ?b <= 3 ) }
[]
occupation genre of sculpture print
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 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(Q18783400)|c(Q11060274),P180,c(Q12737077))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
value 3
[ANSWERS] are depicted in atmost 3 genres of sculpture and prints
[[{'concept': 'Q18783400'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) ?r WHERE { VALUES ( ?f ) { ( ontology:Q18783400 ) ( ontology:Q11060274 ) } . ?n rdf:type ?f } GROUP BY ?r } . FILTER ( ?b <= 3 ) }
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 peasant woodcutter lacemaker Snake charming carpenter school teacher officer fisherman musician poet baker knife grinder police officer guard Maid of honour draughtsperson kazasker madam archbishop sculptor boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric construction worker basketry mail carrier priest artisan art model bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
Farmer, nurse and tailor are depicted in atmost 3 genres of sculpture and prints
farmer nurse tailor
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type occupation
type print
value 3
[[{'concept': 'genre of sculpture'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) ?r WHERE { VALUES ( ?f ) { ( ontology:genre_of_sculpture ) ( ontology:print ) } . ?n rdf:type ?f } GROUP BY ?r } . FILTER ( ?b <= 3 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q23017763 Q3384423
P27
Q15617994
USER
Which administrative territories are the native countriesof Pierre Chevallier and Hadia Ben Abdelghani ?
AND((Q3384423,P27,c(Q15617994)), (Q23017763,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q3384423
relation P27
action find
entity Q23017763
relation P27
type Q15617994
{'AND': [['Q3384423', 'P27', {'concept': 'Q15617994'}], ['Q23017763', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q23017763 property:P27 ?k . resource:Q3384423 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Hadia Ben Abdelghani Pierre Chevallier
action filter_type
action intersection
action find
entity Pierre Chevallier
relation country of citizenship
action find
entity Hadia Ben Abdelghani
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Pierre Chevallier', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hadia Ben Abdelghani', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:Hadia_Ben_Abdelghani property:country_of_citizenship ?k . resource:Pierre_Chevallier property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
AND((Q3384423,P27,c(Q15617994)), (Q23017763,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q3384423
relation P27
action find
entity Q23017763
relation P27
type Q15617994
[ANSWER] is the native countriesof Pierre Chevallier and Hadia Ben Abdelghani
{'AND': [['Q3384423', 'P27', {'concept': 'Q15617994'}], ['Q23017763', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q23017763 property:P27 ?k . resource:Q3384423 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
France
France is the native countriesof Pierre Chevallier and Hadia Ben Abdelghani
France
action filter_type
action intersection
action find
entity Pierre Chevallier
relation country of citizenship
action find
entity Hadia Ben Abdelghani
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Pierre Chevallier', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hadia Ben Abdelghani', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:Hadia_Ben_Abdelghani property:country_of_citizenship ?k . resource:Pierre_Chevallier property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q12059906
P180
Q12737077 Q15709879 Q838948
USER
Which occupations are depicted in lesser number of artwork series and works of art than herder ?
(c(Q15709879)|c(Q838948),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q12059906
relation P180
type Q15709879
type Q838948
[[{'concept': 'Q15709879'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?h ) WHERE { ?i rdf:type ?z . VALUES ( ?z ) { ( ontology:Q838948 ) ( ontology:Q15709879 ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:P180 resource:Q12059906 . { { ?e rdf:type ontology:Q838948 } UNION { ?e rdf:type ontology:Q15709879 } } } } . FILTER ( ?h < ?c ) }
herder
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity herder
relation depicts
type artwork series
type work of art
[[{'concept': 'artwork series'}, {'concept': 'work of art'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?h ) WHERE { ?i rdf:type ?z . VALUES ( ?z ) { ( ontology:work_of_art ) ( ontology:artwork_series ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:depicts resource:herder . { { ?e rdf:type ontology:work_of_art } UNION { ?e rdf:type ontology:artwork_series } } } } . FILTER ( ?h < ?c ) }
[]
occupation artwork series work of art
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 Q1259917 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q4504549 Q842782 Q185196 Q486748 Q328325 Q11900058 Q483501 Q215536 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q19723482 Q12902372 Q170790 Q1139055 Q1028181 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q733786 Q2309900 Q805221 Q5371902 Q17126809 Q12097 Q848550 Q386854 Q202648 Q1753370 Q107711 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q855855 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q19546 Q6116659 Q537575 Q20826540 Q715301 Q11338576 Q622630 Q3330547 Q3214532 Q14009165 Q15954519 Q2981922 Q10833314 Q1318187 Q29182 Q326358 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q54128 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q207651 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q1627992 Q2309784 Q253567 Q3439798 Q2191547 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 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 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q15709879)|c(Q838948),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q12059906
relation P180
type Q15709879
type Q838948
[ANSWERS] are depicted in lesser number of artwork series and works of art than herder
[[{'concept': 'Q15709879'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?h ) WHERE { ?i rdf:type ?z . VALUES ( ?z ) { ( ontology:Q838948 ) ( ontology:Q15709879 ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:P180 resource:Q12059906 . { { ?e rdf:type ontology:Q838948 } UNION { ?e rdf:type ontology:Q15709879 } } } } . FILTER ( ?h < ?c ) }
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 violinist deacon wet nurse sailor clown spinner butcher religious servant detective midwife pianist stonemason explorer artist merchant civil servant sower abbé architect street musician nurse parson mandolinist flautist mathematician tax collector painter mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic monk helmsman ballet dancer harpsichordist rescuer king VOC Opperhoofd in Japan drummer referee curate firefighter dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja page friar hobo fishmonger recorder player laborer pope priestess gravedigger erudite comics artist boxer odalisque chronicler plowman trapper alchemist American pioneer tennis player scrivener bishop joiner goatherd pedicure Catholic priest courtesan member of parliament bartender clogmaker peddler reaper condottiero canon chess player discus thrower bassoonist mufti cowboy rabbi mime artist scientist harpist blacksmith mahout magistrate domestic worker tailor cardinal housekeeper theologian courier monarch salt pan worker porter pastor courtier judge abbot matador goldsmith waterseller pretender astronomer surgeon domestic worker cook executioner Kassandra embroiderer high-ranking civil servant in France exotic dancer lyricist plasterer gardener composer miller tightrope walker maid lady's maid sport cyclist apprentice King of France picador woodcutter lacemaker Snake charming carpenter school teacher officer 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 sea captain Roman emperor quarryman cook street artist waiting staff
Farmer, nurse and tailor are depicted in lesser number of artwork series and works of art than herder
farmer nurse tailor
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity herder
relation depicts
type artwork series
type work of art
[[{'concept': 'artwork series'}, {'concept': 'work of art'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?h ) WHERE { ?i rdf:type ?z . VALUES ( ?z ) { ( ontology:work_of_art ) ( ontology:artwork_series ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:depicts resource:herder . { { ?e rdf:type ontology:work_of_art } UNION { ?e rdf:type ontology:artwork_series } } } } . FILTER ( ?h < ?c ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q131512 Q186360 Q242468
P417
Q502895
USER
Who are the patron saints of those occupations ?
(Q131512,P417,c(Q502895)) (Q186360,P417,c(Q502895)) (Q242468,P417,c(Q502895))
action filter_type
action find
entity prev_answer
relation P417
type Q502895
['Q131512', 'P417', {'concept': 'Q502895'}] ['Q186360', 'P417', {'concept': 'Q502895'}] ['Q242468', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?z property:P417 ?j . ?j rdf:type ontology:Q502895 . VALUES ( ?z ) { ( resource:Q19754019 ) ( resource:Q11957145 ) ( resource:Q1934482 ) } }
farmer nurse tailor
action filter_type
action find
entity prev_answer
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 ?j WHERE { ?z property:patron_saint ?j . ?j rdf:type ontology:common_name . VALUES ( ?z ) { ( resource:fiddler ) ( resource:acrobat ) ( resource:milkmaid ) } }
[]
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 filter_type
action find
entity prev_answer
relation P417
type Q502895
The patron saints of those occupations are [ANSWERS]
['Q131512', 'P417', {'concept': 'Q502895'}] ['Q186360', 'P417', {'concept': 'Q502895'}] ['Q242468', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?z property:P417 ?j . ?j rdf:type ontology:Q502895 . VALUES ( ?z ) { ( resource:Q19754019 ) ( resource:Q11957145 ) ( resource:Q1934482 ) } }
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
The patron saints of those occupations are Isidore of Seville, Catherine of Siena and Benedict of Nursia
Isidore of Seville Catherine of Siena Benedict of Nursia
action filter_type
action find
entity prev_answer
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 ?j WHERE { ?z property:patron_saint ?j . ?j rdf:type ontology:common_name . VALUES ( ?z ) { ( resource:fiddler ) ( resource:acrobat ) ( resource:milkmaid ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q166876
P9
Q502895
USER
Who is the sister of that one ?
(Q166876,P9,c(Q502895))
action filter_type
action find
entity Q166876
relation P9
type Q502895
['Q166876', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . resource:Q166876 property:P9 ?d }
Isidore of Seville
action filter_type
action find
entity Isidore of Seville
relation sister
type common name
['Isidore of Seville', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . resource:Isidore_of_Seville property:sister ?d }
[]
common name
Clarification for simple ques.
Q229190
SYSTEM
Did you mean Catherine of Siena ?
Q166876 Q229190 Q44265
(Q166876,P9,c(Q502895)) (Q229190,P9,c(Q502895)) (Q44265,P9,c(Q502895))
[ANSWER]
['Q166876', 'P9', {'concept': 'Q502895'}] ['Q229190', 'P9', {'concept': 'Q502895'}] ['Q44265', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . resource:Q166876 property:P9 ?d }
Isidore of Seville Catherine of Siena Benedict of Nursia
Did you mean Catherine of Siena ?
Catherine of Siena
['Isidore of Seville', 'sister', {'concept': 'common name'}] ['Catherine of Siena', 'sister', {'concept': 'common name'}] ['Benedict of Nursia', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . resource:Isidore_of_Seville property:sister ?d }
[]
Simple Question (Coreferenced)
USER
No, I meant Isidore of Seville. Could you tell me the answer for that?
(Q166876,P9,c(Q502895))
Q166876
['Q166876', 'P9', {'concept': 'Q502895'}]
['Isidore of Seville', 'sister', {'concept': 'common name'}]
[]
Q2626436
SYSTEM
Saint Florentina
Q2626436
(Q166876,P9,c(Q502895))
action filter_type
action find
entity Q166876
relation P9
type Q502895
The sister of that one is [ANSWER]
['Q166876', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . resource:Q166876 property:P9 ?d }
Saint Florentina
The sister of that one is Saint Florentina
Saint Florentina
action filter_type
action find
entity Isidore of Seville
relation sister
type common name
['Isidore of Seville', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . resource:Isidore_of_Seville property:sister ?d }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q2626436 Q23927716 Q2616176
P7
Q502895
USER
Does that person have Mary Rooks and Fulgentius of Cartagena as their brother ?
(Q2626436,P7,Q23927716) (Q2626436,P7,Q2616176)
action is_in
entity Q2626436
action intersection
action find_reverse
entity Q23927716
relation P7
action find_reverse
entity Q2616176
relation P7
['Q2626436', 'P7', 'Q23927716'] ['Q2626436', 'P7', 'Q2616176']
ASK WHERE { resource:Q2626436 property:P7 resource:Q23927716 . resource:Q2626436 property:P7 resource:Q2616176 }
Saint Florentina Mary Rooks Fulgentius of Cartagena
action is_in
entity Saint Florentina
action intersection
action find_reverse
entity Mary Rooks
relation brother
action find_reverse
entity Fulgentius of Cartagena
relation brother
['Saint Florentina', 'brother', 'Mary Rooks'] ['Saint Florentina', 'brother', 'Fulgentius of Cartagena']
ASK WHERE { resource:Saint_Florentina property:brother resource:Mary_Rooks . resource:Saint_Florentina property:brother resource:Fulgentius_of_Cartagena }
[]
common name
SYSTEM
NO and YES respectively
(Q2626436,P7,Q23927716) (Q2626436,P7,Q2616176)
action is_in
entity Q2626436
action intersection
action find_reverse
entity Q23927716
relation P7
action find_reverse
entity Q2616176
relation P7
[ANSWER]
['Q2626436', 'P7', 'Q23927716'] ['Q2626436', 'P7', 'Q2616176']
ASK WHERE { resource:Q2626436 property:P7 resource:Q23927716 . resource:Q2626436 property:P7 resource:Q2616176 }
NO and YES respectively
action is_in
entity Saint Florentina
action intersection
action find_reverse
entity Mary Rooks
relation brother
action find_reverse
entity Fulgentius of Cartagena
relation brother
['Saint Florentina', 'brother', 'Mary Rooks'] ['Saint Florentina', 'brother', 'Fulgentius of Cartagena']
ASK WHERE { resource:Saint_Florentina property:brother resource:Mary_Rooks . resource:Saint_Florentina property:brother resource:Fulgentius_of_Cartagena }
[]