Simple Question (Direct)
Simple Question
Q5082250
P106
Q12737077
USER
Which occupation is the profession of Charles Smith Bradley ?
(Q5082250,P106,c(Q12737077))
action filter_type
action find
entity Q5082250
relation P106
type Q12737077
['Q5082250', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q5082250 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
Charles Smith Bradley
action filter_type
action find
entity Charles Smith Bradley
relation occupation
type occupation
['Charles Smith Bradley', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Charles_Smith_Bradley property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q16533
SYSTEM
judge
Q16533
(Q5082250,P106,c(Q12737077))
action filter_type
action find
entity Q5082250
relation P106
type Q12737077
The [ANSWER] is the profession of Charles Smith Bradley
['Q5082250', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q5082250 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
judge
The judge is the profession of Charles Smith Bradley
judge
action filter_type
action find
entity Charles Smith Bradley
relation occupation
type occupation
['Charles Smith Bradley', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Charles_Smith_Bradley property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5082250
P108
Q163740
USER
Who is the employer of Charles Smith Bradley ?
(Q5082250,P108,c(Q163740))
action filter_type
action find
entity Q5082250
relation P108
type Q163740
['Q5082250', 'P108', {'concept': 'Q163740'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q163740 . resource:Q5082250 property:P108 ?a }
Charles Smith Bradley
action filter_type
action find
entity Charles Smith Bradley
relation employer
type nonprofit organization
['Charles Smith Bradley', 'employer', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:nonprofit_organization . resource:Charles_Smith_Bradley property:employer ?a }
[]
nonprofit organization
Q13371
SYSTEM
Harvard University
Q13371
(Q5082250,P108,c(Q163740))
action filter_type
action find
entity Q5082250
relation P108
type Q163740
The employer of Charles Smith Bradley is of [ANSWER]
['Q5082250', 'P108', {'concept': 'Q163740'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q163740 . resource:Q5082250 property:P108 ?a }
Harvard University
The employer of Charles Smith Bradley is of Harvard University
Harvard University
action filter_type
action find
entity Charles Smith Bradley
relation employer
type nonprofit organization
['Charles Smith Bradley', 'employer', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:nonprofit_organization . resource:Charles_Smith_Bradley property:employer ?a }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P355
Q3914 Q43229
USER
How many schools or organizations serve as a subsidiary of that nonprofit organization ?
(Q13371,P355,c(Q3914)) (Q13371,P355,c(Q43229)) (Q13371,P355,c(Q3914)) (Q13371,P355,c(Q43229))
action count
action union
action filter_type
action find
entity Q13371
relation P355
type Q3914
action filter_type
action find
entity Q13371
relation P355
type Q43229
['Q13371', 'P355', {'concept': 'Q3914'}] ['Q13371', 'P355', {'concept': 'Q43229'}] ['Q13371', 'P355', {'concept': 'Q3914'}] ['Q13371', 'P355', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?r ) { ( ontology:Q3914 ) ( ontology:Q43229 ) } . ?h rdf:type ?r }
action count
action union
action filter_type
action find
entity Harvard University
relation subsidiary
type school
action filter_type
action find
entity Harvard University
relation subsidiary
type organization
['Harvard University', 'subsidiary', {'concept': 'school'}] ['Harvard University', 'subsidiary', {'concept': 'organization'}] ['Harvard University', 'subsidiary', {'concept': 'school'}] ['Harvard University', 'subsidiary', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?r ) { ( ontology:school ) ( ontology:organization ) } . ?h rdf:type ?r }
[]
school organization
SYSTEM
2
Q5676489 Q49126
(Q13371,P355,c(Q3914)) (Q13371,P355,c(Q43229)) (Q13371,P355,c(Q3914)) (Q13371,P355,c(Q43229))
action count
action union
action filter_type
action find
entity Q13371
relation P355
type Q3914
action filter_type
action find
entity Q13371
relation P355
type Q43229
[ANSWER]
['Q13371', 'P355', {'concept': 'Q3914'}] ['Q13371', 'P355', {'concept': 'Q43229'}] ['Q13371', 'P355', {'concept': 'Q3914'}] ['Q13371', 'P355', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?r ) { ( ontology:Q3914 ) ( ontology:Q43229 ) } . ?h rdf:type ?r }
Harvard Management Company Harvard Business School
2
action count
action union
action filter_type
action find
entity Harvard University
relation subsidiary
type school
action filter_type
action find
entity Harvard University
relation subsidiary
type organization
['Harvard University', 'subsidiary', {'concept': 'school'}] ['Harvard University', 'subsidiary', {'concept': 'organization'}] ['Harvard University', 'subsidiary', {'concept': 'school'}] ['Harvard University', 'subsidiary', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?r ) { ( ontology:school ) ( ontology:organization ) } . ?h rdf:type ?r }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1362237 Q5082250
P69
Q163740
USER
Which nonprofit organizations are the alma mater of Charles Smith Bradley or Michael J. Harrington ?
OR((Q5082250,P69,c(Q163740)), (Q1362237,P69,c(Q163740)))
action filter_type
action union
action find
entity Q5082250
relation P69
action find
entity Q1362237
relation P69
type Q163740
{'OR': [['Q5082250', 'P69', {'concept': 'Q163740'}], ['Q1362237', 'P69', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?l ) { ( resource:Q1362237 ) ( resource:Q5082250 ) } . ?l property:P69 ?c } . ?c rdf:type ontology:Q163740 }
Michael J. Harrington Charles Smith Bradley
action filter_type
action union
action find
entity Charles Smith Bradley
relation educated at
action find
entity Michael J. Harrington
relation educated at
type nonprofit organization
{'OR': [['Charles Smith Bradley', 'educated at', {'concept': 'nonprofit organization'}], ['Michael J. Harrington', 'educated at', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?l ) { ( resource:Michael_J._Harrington ) ( resource:Charles_Smith_Bradley ) } . ?l property:educated_at ?c } . ?c rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q49114 Q13371
SYSTEM
Brown University, Harvard University
Q49114 Q13371
OR((Q5082250,P69,c(Q163740)), (Q1362237,P69,c(Q163740)))
action filter_type
action union
action find
entity Q5082250
relation P69
action find
entity Q1362237
relation P69
type Q163740
[ANSWERS] are the alma mater of Charles Smith Bradley or Michael J. Harrington
{'OR': [['Q5082250', 'P69', {'concept': 'Q163740'}], ['Q1362237', 'P69', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?l ) { ( resource:Q1362237 ) ( resource:Q5082250 ) } . ?l property:P69 ?c } . ?c rdf:type ontology:Q163740 }
Brown University Harvard University
Brown University and Harvard University are the alma mater of Charles Smith Bradley or Michael J. Harrington
Brown University Harvard University
action filter_type
action union
action find
entity Charles Smith Bradley
relation educated at
action find
entity Michael J. Harrington
relation educated at
type nonprofit organization
{'OR': [['Charles Smith Bradley', 'educated at', {'concept': 'nonprofit organization'}], ['Michael J. Harrington', 'educated at', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?l ) { ( resource:Michael_J._Harrington ) ( resource:Charles_Smith_Bradley ) } . ?l property:educated_at ?c } . ?c rdf:type ontology:nonprofit_organization }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4912956 Q5082250
P69
Q163740
USER
Which nonprofit organizations were Charles Smith Bradley or Billy Martindale educated at ?
OR((Q5082250,P69,c(Q163740)), (Q4912956,P69,c(Q163740)))
action filter_type
action union
action find
entity Q5082250
relation P69
action find
entity Q4912956
relation P69
type Q163740
{'OR': [['Q5082250', 'P69', {'concept': 'Q163740'}], ['Q4912956', 'P69', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?j WHERE { { ?r property:P69 ?j . VALUES ( ?r ) { ( resource:Q5082250 ) ( resource:Q4912956 ) } } . ?j rdf:type ontology:Q163740 }
Billy Martindale Charles Smith Bradley
action filter_type
action union
action find
entity Charles Smith Bradley
relation educated at
action find
entity Billy Martindale
relation educated at
type nonprofit organization
{'OR': [['Charles Smith Bradley', 'educated at', {'concept': 'nonprofit organization'}], ['Billy Martindale', 'educated at', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?j WHERE { { ?r property:educated_at ?j . VALUES ( ?r ) { ( resource:Charles_Smith_Bradley ) ( resource:Billy_Martindale ) } } . ?j rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q49114 Q1536258
SYSTEM
Brown University, Southern Methodist University
Q49114 Q1536258
OR((Q5082250,P69,c(Q163740)), (Q4912956,P69,c(Q163740)))
action filter_type
action union
action find
entity Q5082250
relation P69
action find
entity Q4912956
relation P69
type Q163740
Charles Smith Bradley or Billy Martindale were educated at Little [ANSWERS]
{'OR': [['Q5082250', 'P69', {'concept': 'Q163740'}], ['Q4912956', 'P69', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?j WHERE { { ?r property:P69 ?j . VALUES ( ?r ) { ( resource:Q5082250 ) ( resource:Q4912956 ) } } . ?j rdf:type ontology:Q163740 }
Brown University Southern Methodist University
Charles Smith Bradley or Billy Martindale were educated at Little Brown University and Southern Methodist University
Brown University Southern Methodist University
action filter_type
action union
action find
entity Charles Smith Bradley
relation educated at
action find
entity Billy Martindale
relation educated at
type nonprofit organization
{'OR': [['Charles Smith Bradley', 'educated at', {'concept': 'nonprofit organization'}], ['Billy Martindale', 'educated at', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?j WHERE { { ?r property:educated_at ?j . VALUES ( ?r ) { ( resource:Charles_Smith_Bradley ) ( resource:Billy_Martindale ) } } . ?j rdf:type ontology:nonprofit_organization }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5779499
P69
Q502895
USER
Were Johan Nilsson Gyllenstierna d.y. a student at those nonprofit organizations ?
(Q5779499,P69,Q49114) (Q5779499,P69,Q1536258)
action is_in
entity prev_answer
action find
entity Q5779499
relation P69
['Q5779499', 'P69', 'Q49114'] ['Q5779499', 'P69', 'Q1536258']
ASK WHERE { VALUES ( ?o ) { ( resource:Q49114 ) ( resource:Q1536258 ) } . resource:Q5779499 property:P69 ?o }
Johan Nilsson Gyllenstierna d.y.
action is_in
entity prev_answer
action find
entity Johan Nilsson Gyllenstierna d.y.
relation educated at
['Johan Nilsson Gyllenstierna d.y.', 'educated at', 'Brown University'] ['Johan Nilsson Gyllenstierna d.y.', 'educated at', 'Southern Methodist University']
ASK WHERE { VALUES ( ?o ) { ( resource:Brown_University ) ( resource:Southern_Methodist_University ) } . resource:Johan_Nilsson_Gyllenstierna_d.y. property:educated_at ?o }
[]
common name
SYSTEM
NO
(Q5779499,P69,Q49114) (Q5779499,P69,Q1536258)
action is_in
entity prev_answer
action find
entity Q5779499
relation P69
[ANSWER]
['Q5779499', 'P69', 'Q49114'] ['Q5779499', 'P69', 'Q1536258']
ASK WHERE { VALUES ( ?o ) { ( resource:Q49114 ) ( resource:Q1536258 ) } . resource:Q5779499 property:P69 ?o }
No
action is_in
entity prev_answer
action find
entity Johan Nilsson Gyllenstierna d.y.
relation educated at
['Johan Nilsson Gyllenstierna d.y.', 'educated at', 'Brown University'] ['Johan Nilsson Gyllenstierna d.y.', 'educated at', 'Southern Methodist University']
ASK WHERE { VALUES ( ?o ) { ( resource:Brown_University ) ( resource:Southern_Methodist_University ) } . resource:Johan_Nilsson_Gyllenstierna_d.y. property:educated_at ?o }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q12737077 Q3305213 Q17638008
USER
Which occupations are expressed in min number of paintings or game equipment ?
(c(Q3305213)|c(Q17638008),P180,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
[[{'concept': 'Q3305213'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?v WHERE { { ?c property:P180 ?v . ?v rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q3305213 } UNION { ?v rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q17638008 . ?c property:P180 ?v } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) ?n WHERE { ?p rdf:type ?a . VALUES ( ?a ) { ( ontology:Q3305213 ) ( ontology:Q17638008 ) } } GROUP BY ?n } . FILTER ( ?o = ?x ) }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
[[{'concept': 'painting'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?v WHERE { { ?c property:depicts ?v . ?v rdf:type ontology:occupation . ?c rdf:type ontology:painting } UNION { ?v rdf:type ontology:occupation . ?c rdf:type ontology:game_equipment . ?c property:depicts ?v } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) ?n WHERE { ?p rdf:type ?a . VALUES ( ?a ) { ( ontology:painting ) ( ontology:game_equipment ) } } GROUP BY ?n } . FILTER ( ?o = ?x ) }
[]
occupation painting game equipment
Q186360 Q242468 Q182436
SYSTEM
nurse, tailor, librarian
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 Q11900058 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 Q843281 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 Q170779 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(Q3305213)|c(Q17638008),P180,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
[ANSWERS] are expressed in min number of paintings or game equipment
[[{'concept': 'Q3305213'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?v WHERE { { ?c property:P180 ?v . ?v rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q3305213 } UNION { ?v rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q17638008 . ?c property:P180 ?v } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) ?n WHERE { ?p rdf:type ?a . VALUES ( ?a ) { ( ontology:Q3305213 ) ( ontology:Q17638008 ) } } GROUP BY ?n } . FILTER ( ?o = ?x ) }
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 explorer 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 hobo 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 Kassandra 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
Nurse, tailor and librarian are expressed in min number of paintings or game equipment
nurse tailor librarian
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
[[{'concept': 'painting'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?v WHERE { { ?c property:depicts ?v . ?v rdf:type ontology:occupation . ?c rdf:type ontology:painting } UNION { ?v rdf:type ontology:occupation . ?c rdf:type ontology:game_equipment . ?c property:depicts ?v } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) ?n WHERE { ?p rdf:type ?a . VALUES ( ?a ) { ( ontology:painting ) ( ontology:game_equipment ) } } GROUP BY ?n } . FILTER ( ?o = ?x ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q340169 Q17638008
USER
Which occupations are expressed in approximately 1 medias or game equipment ?
(c(Q340169)|c(Q17638008),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
value 1
[[{'concept': 'Q340169'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?a ) WHERE { VALUES ( ?g ) { ( ontology:Q340169 ) ( ontology:Q17638008 ) } . ?w rdf:type ?g } GROUP BY ?p } . FILTER ( ?a = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
value 1
[[{'concept': 'media'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?a ) WHERE { VALUES ( ?g ) { ( ontology:media ) ( ontology:game_equipment ) } . ?w rdf:type ?g } GROUP BY ?p } . FILTER ( ?a = 1 ) }
[]
occupation media game equipment
Q186360 Q5716684 Q177220
SYSTEM
nurse, dancer, singer
Q177220 Q2995983 Q45199 Q186360 Q733786 Q273108 Q589897 Q5716684 Q18575684 Q384593 Q1630100
(c(Q340169)|c(Q17638008),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
value 1
[ANSWERS] are expressed in approximately 1 medias or game equipment
[[{'concept': 'Q340169'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?a ) WHERE { VALUES ( ?g ) { ( ontology:Q340169 ) ( ontology:Q17638008 ) } . ?w rdf:type ?g } GROUP BY ?p } . FILTER ( ?a = 1 ) }
singer double-bassist sailor nurse monk condottiero mahout dancer embroiderer police officer art model
Nurse, dancer and singer are expressed in approximately 1 medias or game equipment
nurse dancer singer
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
value 1
[[{'concept': 'media'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?w ) AS ?a ) WHERE { VALUES ( ?g ) { ( ontology:media ) ( ontology:game_equipment ) } . ?w rdf:type ?g } GROUP BY ?p } . FILTER ( ?a = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5716684
P417
Q502895
USER
What is the name of person who is the patron saint of that occupation ?
(Q5716684,P417,c(Q502895))
action filter_type
action find
entity Q5716684
relation P417
type Q502895
['Q5716684', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q5716684 property:P417 ?p . ?p rdf:type ontology:Q502895 }
dancer
action filter_type
action find
entity dancer
relation patron saint
type common name
['dancer', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:dancer property:patron_saint ?p . ?p rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q177220
SYSTEM
Did you mean singer ?
Q186360 Q5716684 Q177220
(Q186360,P417,c(Q502895)) (Q5716684,P417,c(Q502895)) (Q177220,P417,c(Q502895))
[ANSWER]
['Q186360', 'P417', {'concept': 'Q502895'}] ['Q5716684', 'P417', {'concept': 'Q502895'}] ['Q177220', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q5716684 property:P417 ?p . ?p rdf:type ontology:Q502895 }
nurse dancer singer
Did you mean singer ?
singer
['nurse', 'patron saint', {'concept': 'common name'}] ['dancer', 'patron saint', {'concept': 'common name'}] ['singer', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:dancer property:patron_saint ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant dancer. Could you tell me the answer for that?
(Q5716684,P417,c(Q502895))
Q5716684
['Q5716684', 'P417', {'concept': 'Q502895'}]
['dancer', 'patron saint', {'concept': 'common name'}]
[]
Q212850
SYSTEM
Vitus
Q212850
(Q5716684,P417,c(Q502895))
action filter_type
action find
entity Q5716684
relation P417
type Q502895
The name of person is the patron saint of that occupation is Roman [ANSWER]
['Q5716684', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q5716684 property:P417 ?p . ?p rdf:type ontology:Q502895 }
Vitus
The name of person is the patron saint of that occupation is Roman Vitus
Vitus
action filter_type
action find
entity dancer
relation patron saint
type common name
['dancer', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:dancer property:patron_saint ?p . ?p rdf:type ontology:common_name }
[]