Simple Question (Direct)
Simple Question
Q2941840
P101
Q451967
USER
Which human action is the area of Catherine Brice ?
(Q2941840,P101,c(Q451967))
action filter_type
action find
entity Q2941840
relation P101
type Q451967
['Q2941840', 'P101', {'concept': 'Q451967'}]
SELECT DISTINCT ?h WHERE { resource:Q2941840 property:P101 ?h . ?h rdf:type ontology:Q451967 }
Catherine Brice
action filter_type
action find
entity Catherine Brice
relation field of work
type human action
['Catherine Brice', 'field of work', {'concept': 'human action'}]
SELECT DISTINCT ?h WHERE { resource:Catherine_Brice property:field_of_work ?h . ?h rdf:type ontology:human_action }
[]
human action
Q6495391
SYSTEM
late modern period
Q6495391
(Q2941840,P101,c(Q451967))
action filter_type
action find
entity Q2941840
relation P101
type Q451967
[ANSWER] is the area of Catherine Brice
['Q2941840', 'P101', {'concept': 'Q451967'}]
SELECT DISTINCT ?h WHERE { resource:Q2941840 property:P101 ?h . ?h rdf:type ontology:Q451967 }
late modern period
Late modern period is the area of Catherine Brice
late modern period
action filter_type
action find
entity Catherine Brice
relation field of work
type human action
['Catherine Brice', 'field of work', {'concept': 'human action'}]
SELECT DISTINCT ?h WHERE { resource:Catherine_Brice property:field_of_work ?h . ?h rdf:type ontology:human_action }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6495391
P425
Q12737077
USER
Which occupation does that human action belong to ?
(c(Q12737077),P425,Q6495391)
action filter_type
action find_reverse
entity Q6495391
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q6495391']
SELECT DISTINCT ?d WHERE { ?d property:P425 resource:Q6495391 . ?d rdf:type ontology:Q12737077 }
late modern period
action filter_type
action find_reverse
entity late modern period
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'late modern period']
SELECT DISTINCT ?d WHERE { ?d property:field_of_this_occupation resource:late_modern_period . ?d rdf:type ontology:occupation }
[]
occupation
Q2995513
SYSTEM
contemporary historian
Q2995513
(c(Q12737077),P425,Q6495391)
action filter_type
action find_reverse
entity Q6495391
relation P425
type Q12737077
That human action belongs to a [ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q6495391']
SELECT DISTINCT ?d WHERE { ?d property:P425 resource:Q6495391 . ?d rdf:type ontology:Q12737077 }
contemporary historian
That human action belongs to a contemporary historian
contemporary historian
action filter_type
action find_reverse
entity late modern period
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'late modern period']
SELECT DISTINCT ?d WHERE { ?d property:field_of_this_occupation resource:late_modern_period . ?d rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P417
Q502895 Q12737077
USER
Which people are the names of person who are the patron saints 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 ?k WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?p ) { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?z ) WHERE { ?x rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q502895 . ?x property:P417 ?i } GROUP BY ?i } } . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:P417 ?k . ?k rdf:type ontology:Q502895 . ?s rdf:type ontology:Q12737077 } GROUP BY ?k } . FILTER ( ?y = ?p ) }
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 ?k WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?p ) { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?z ) WHERE { ?x rdf:type ontology:occupation . ?i rdf:type ontology:common_name . ?x property:patron_saint ?i } GROUP BY ?i } } . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:patron_saint ?k . ?k rdf:type ontology:common_name . ?s rdf:type ontology:occupation } GROUP BY ?k } . FILTER ( ?y = ?p ) }
[]
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 names of person who is the patron saints of max number of occupations
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?p ) { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?z ) WHERE { ?x rdf:type ontology:Q12737077 . ?i rdf:type ontology:Q502895 . ?x property:P417 ?i } GROUP BY ?i } } . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:P417 ?k . ?k rdf:type ontology:Q502895 . ?s rdf:type ontology:Q12737077 } GROUP BY ?k } . FILTER ( ?y = ?p ) }
Catherine of Alexandria
Catherine of Alexandria is the names of person who is the patron saints 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 ?k WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?p ) { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?z ) WHERE { ?x rdf:type ontology:occupation . ?i rdf:type ontology:common_name . ?x property:patron_saint ?i } GROUP BY ?i } } . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:patron_saint ?k . ?k rdf:type ontology:common_name . ?s rdf:type ontology:occupation } GROUP BY ?k } . FILTER ( ?y = ?p ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P2348
Q451967 Q3024240
USER
How many human actions or former countries did that person belong to ?
(Q179718,P2348,c(Q451967)) (Q179718,P2348,c(Q3024240)) (Q179718,P2348,c(Q451967)) (Q179718,P2348,c(Q3024240))
action count
action union
action filter_type
action find
entity Q179718
relation P2348
type Q451967
action filter_type
action find
entity Q179718
relation P2348
type Q3024240
['Q179718', 'P2348', {'concept': 'Q451967'}] ['Q179718', 'P2348', {'concept': 'Q3024240'}] ['Q179718', 'P2348', {'concept': 'Q451967'}] ['Q179718', 'P2348', {'concept': 'Q3024240'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { resource:Q179718 property:P2348 ?r . ?r rdf:type ontology:Q451967 } UNION { resource:Q179718 property:P2348 ?r . ?r rdf:type ontology:Q3024240 } }
action count
action union
action filter_type
action find
entity Catherine of Alexandria
relation period
type human action
action filter_type
action find
entity Catherine of Alexandria
relation period
type former country
['Catherine of Alexandria', 'period', {'concept': 'human action'}] ['Catherine of Alexandria', 'period', {'concept': 'former country'}] ['Catherine of Alexandria', 'period', {'concept': 'human action'}] ['Catherine of Alexandria', 'period', {'concept': 'former country'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { resource:Catherine_of_Alexandria property:period ?r . ?r rdf:type ontology:human_action } UNION { resource:Catherine_of_Alexandria property:period ?r . ?r rdf:type ontology:former_country } }
[]
human action former country
SYSTEM
2
Q428995 Q2277
(Q179718,P2348,c(Q451967)) (Q179718,P2348,c(Q3024240)) (Q179718,P2348,c(Q451967)) (Q179718,P2348,c(Q3024240))
action count
action union
action filter_type
action find
entity Q179718
relation P2348
type Q451967
action filter_type
action find
entity Q179718
relation P2348
type Q3024240
[ANSWER]
['Q179718', 'P2348', {'concept': 'Q451967'}] ['Q179718', 'P2348', {'concept': 'Q3024240'}] ['Q179718', 'P2348', {'concept': 'Q451967'}] ['Q179718', 'P2348', {'concept': 'Q3024240'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { resource:Q179718 property:P2348 ?r . ?r rdf:type ontology:Q451967 } UNION { resource:Q179718 property:P2348 ?r . ?r rdf:type ontology:Q3024240 } }
Hellenistic period Roman Empire
2
action count
action union
action filter_type
action find
entity Catherine of Alexandria
relation period
type human action
action filter_type
action find
entity Catherine of Alexandria
relation period
type former country
['Catherine of Alexandria', 'period', {'concept': 'human action'}] ['Catherine of Alexandria', 'period', {'concept': 'former country'}] ['Catherine of Alexandria', 'period', {'concept': 'human action'}] ['Catherine of Alexandria', 'period', {'concept': 'former country'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { resource:Catherine_of_Alexandria property:period ?r . ?r rdf:type ontology:human_action } UNION { resource:Catherine_of_Alexandria property:period ?r . ?r rdf:type ontology:former_country } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q12097
P180
Q12737077 Q17638008 Q3516658
USER
How many occupations are depicted in less number of game equipment or heraldic symbols than king ?
(c(Q17638008)|c(Q3516658),P180,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
action count
action filter_multi_types
action find_reverse
entity Q12097
relation P180
type Q17638008
type Q3516658
[[{'concept': 'Q17638008'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) ?d WHERE { VALUES ( ?f ) { ( ontology:Q17638008 ) ( ontology:Q3516658 ) } . ?h rdf:type ?f } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { ?j property:P180 resource:Q12097 . { VALUES ( ?c ) { ( ontology:Q3516658 ) ( ontology:Q17638008 ) } . ?j rdf:type ?c } } } . FILTER ( ?b < ?v ) }
king
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
action count
action filter_multi_types
action find_reverse
entity king
relation depicts
type game equipment
type heraldic symbol
[[{'concept': 'game equipment'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) ?d WHERE { VALUES ( ?f ) { ( ontology:game_equipment ) ( ontology:heraldic_symbol ) } . ?h rdf:type ?f } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { ?j property:depicts resource:king . { VALUES ( ?c ) { ( ontology:heraldic_symbol ) ( ontology:game_equipment ) } . ?j rdf:type ?c } } } . FILTER ( ?b < ?v ) }
[]
occupation game equipment heraldic symbol
SYSTEM
228
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 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(Q17638008)|c(Q3516658),P180,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
action count
action filter_multi_types
action find_reverse
entity Q12097
relation P180
type Q17638008
type Q3516658
[ANSWER]
[[{'concept': 'Q17638008'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) ?d WHERE { VALUES ( ?f ) { ( ontology:Q17638008 ) ( ontology:Q3516658 ) } . ?h rdf:type ?f } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { ?j property:P180 resource:Q12097 . { VALUES ( ?c ) { ( ontology:Q3516658 ) ( ontology:Q17638008 ) } . ?j rdf:type ?c } } } . FILTER ( ?b < ?v ) }
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 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
228
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
action count
action filter_multi_types
action find_reverse
entity king
relation depicts
type game equipment
type heraldic symbol
[[{'concept': 'game equipment'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) ?d WHERE { VALUES ( ?f ) { ( ontology:game_equipment ) ( ontology:heraldic_symbol ) } . ?h rdf:type ?f } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { ?j property:depicts resource:king . { VALUES ( ?c ) { ( ontology:heraldic_symbol ) ( ontology:game_equipment ) } . ?j rdf:type ?c } } } . FILTER ( ?b < ?v ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1327500
P1303
Q34379 Q502895
USER
How many musical instruments can less number of people perform with than electronic musical instrument ?
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q1327500
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?d ) WHERE { ?b property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:P1303 resource:Q1327500 . ?r rdf:type ontology:Q502895 } } . FILTER ( ?d < ?x ) }
electronic musical instrument
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity electronic musical instrument
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?d ) WHERE { ?b property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:instrument resource:electronic_musical_instrument . ?r rdf:type ontology:common_name } } . FILTER ( ?d < ?x ) }
[]
musical instrument common name
SYSTEM
3
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q1327500
relation P1303
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?d ) WHERE { ?b property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:P1303 resource:Q1327500 . ?r rdf:type ontology:Q502895 } } . FILTER ( ?d < ?x ) }
spoon cajón wind instrument
3
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity electronic musical instrument
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?d ) WHERE { ?b property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:instrument resource:electronic_musical_instrument . ?r rdf:type ontology:common_name } } . FILTER ( ?d < ?x ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q713298
P1303
Q34379 Q502895
USER
And what about geomungo?
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q713298
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o rdf:type ontology:Q502895 . ?o property:P1303 resource:Q713298 } } . FILTER ( ?d < ?f ) }
geomungo
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity geomungo
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o rdf:type ontology:common_name . ?o property:instrument resource:geomungo } } . FILTER ( ?d < ?f ) }
[]
musical instrument common name
SYSTEM
3
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q713298
relation P1303
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o rdf:type ontology:Q502895 . ?o property:P1303 resource:Q713298 } } . FILTER ( ?d < ?f ) }
spoon cajón wind instrument
3
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity geomungo
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { ?o rdf:type ontology:common_name . ?o property:instrument resource:geomungo } } . FILTER ( ?d < ?f ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q179718 Q26757480
P2348
Q451967
USER
How many human actions did Catherine of Alexandria or Saint Elijah Church, Mitrashintsi belong to ?
(Q179718,P2348,c(Q451967)) (Q26757480,P2348,c(Q451967))
action count
action union
action filter_type
action find
entity Q179718
relation P2348
type Q451967
action filter_type
action find
entity Q26757480
relation P2348
type Q451967
['Q179718', 'P2348', {'concept': 'Q451967'}] ['Q26757480', 'P2348', {'concept': 'Q451967'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { resource:Q179718 property:P2348 ?t . ?t rdf:type ontology:Q451967 } UNION { ?t rdf:type ontology:Q451967 . resource:Q26757480 property:P2348 ?t } }
Catherine of Alexandria Saint Elijah Church, Mitrashintsi
action count
action union
action filter_type
action find
entity Catherine of Alexandria
relation period
type human action
action filter_type
action find
entity Saint Elijah Church, Mitrashintsi
relation period
type human action
['Catherine of Alexandria', 'period', {'concept': 'human action'}] ['Saint Elijah Church, Mitrashintsi', 'period', {'concept': 'human action'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { resource:Catherine_of_Alexandria property:period ?t . ?t rdf:type ontology:human_action } UNION { ?t rdf:type ontology:human_action . resource:Saint_Elijah_Church,_Mitrashintsi property:period ?t } }
[]
human action
SYSTEM
2
Q51644 Q428995
(Q179718,P2348,c(Q451967)) (Q26757480,P2348,c(Q451967))
action count
action union
action filter_type
action find
entity Q179718
relation P2348
type Q451967
action filter_type
action find
entity Q26757480
relation P2348
type Q451967
[ANSWER]
['Q179718', 'P2348', {'concept': 'Q451967'}] ['Q26757480', 'P2348', {'concept': 'Q451967'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { resource:Q179718 property:P2348 ?t . ?t rdf:type ontology:Q451967 } UNION { ?t rdf:type ontology:Q451967 . resource:Q26757480 property:P2348 ?t } }
Early Christianity Hellenistic period
2
action count
action union
action filter_type
action find
entity Catherine of Alexandria
relation period
type human action
action filter_type
action find
entity Saint Elijah Church, Mitrashintsi
relation period
type human action
['Catherine of Alexandria', 'period', {'concept': 'human action'}] ['Saint Elijah Church, Mitrashintsi', 'period', {'concept': 'human action'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { resource:Catherine_of_Alexandria property:period ?t . ?t rdf:type ontology:human_action } UNION { ?t rdf:type ontology:human_action . resource:Saint_Elijah_Church,_Mitrashintsi property:period ?t } }
[]