Simple Question (Direct)
Simple Question
Q5113316
P241
Q781132
USER
Which military branch is Christopher Tanner affiliated to ?
(Q5113316,P241,c(Q781132))
action filter_type
action find
entity Q5113316
relation P241
type Q781132
['Q5113316', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?i WHERE { resource:Q5113316 property:P241 ?i . ?i rdf:type ontology:Q781132 }
Christopher Tanner
action filter_type
action find
entity Christopher Tanner
relation military branch
type military branch
['Christopher Tanner', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?i WHERE { resource:Christopher_Tanner property:military_branch ?i . ?i rdf:type ontology:military_branch }
[]
military branch
Q172771
SYSTEM
Royal Navy
Q172771
(Q5113316,P241,c(Q781132))
action filter_type
action find
entity Q5113316
relation P241
type Q781132
Christopher Tanner is affiliated with [ANSWER]
['Q5113316', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?i WHERE { resource:Q5113316 property:P241 ?i . ?i rdf:type ontology:Q781132 }
Royal Navy
Christopher Tanner is affiliated with Royal Navy
Royal Navy
action filter_type
action find
entity Christopher Tanner
relation military branch
type military branch
['Christopher Tanner', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?i WHERE { resource:Christopher_Tanner property:military_branch ?i . ?i rdf:type ontology:military_branch }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5113316
P106
Q12737077
USER
Which occupation is the profession of Christopher Tanner ?
(Q5113316,P106,c(Q12737077))
action filter_type
action find
entity Q5113316
relation P106
type Q12737077
['Q5113316', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q5113316 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Christopher Tanner
action filter_type
action find
entity Christopher Tanner
relation occupation
type occupation
['Christopher Tanner', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Christopher_Tanner property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q14089670
SYSTEM
rugby union player
Q14089670
(Q5113316,P106,c(Q12737077))
action filter_type
action find
entity Q5113316
relation P106
type Q12737077
The [ANSWER] is the profession of Christopher Tanner
['Q5113316', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q5113316 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
rugby union player
The rugby union player is the profession of Christopher Tanner
rugby union player
action filter_type
action find
entity Christopher Tanner
relation occupation
type occupation
['Christopher Tanner', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Christopher_Tanner property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5113316
P607
Q198
USER
What was was that person a part of ?
(Q14089670,P607,c(Q198))
action filter_type
action find
entity Q5113316
relation P607
type Q198
['Q14089670', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?e WHERE { resource:Q5113316 property:P607 ?e . ?e rdf:type ontology:Q198 }
Christopher Tanner
action filter_type
action find
entity Christopher Tanner
relation conflict
type war
['rugby union player', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?e WHERE { resource:Christopher_Tanner property:conflict ?e . ?e rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q14089670,P607,c(Q198))
action filter_type
action find
entity Q5113316
relation P607
type Q198
That person was a part of [ANSWER]
['Q14089670', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?e WHERE { resource:Q5113316 property:P607 ?e . ?e rdf:type ontology:Q198 }
World War II
That person was a part of World War II
World War II
action filter_type
action find
entity Christopher Tanner
relation conflict
type war
['rugby union player', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?e WHERE { resource:Christopher_Tanner property:conflict ?e . ?e rdf:type ontology:war }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saints of exactly 1 occupation ?
(c(Q12737077),P417,c(Q502895))
action equal
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:P417 ?d . ?o rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q502895 } GROUP BY ?d } . FILTER ( ?h = 1 ) }
action equal
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:patron_saint ?d . ?o rdf:type ontology:occupation . ?d rdf:type ontology:common_name } GROUP BY ?d } . FILTER ( ?h = 1 ) }
[]
common name occupation
Q9438 Q60059 Q44281
SYSTEM
Thomas Aquinas, Albertus Magnus, Ignatius of Loyola
Q453698 Q152457 Q43689 Q163900 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q508214 Q9200 Q193507 Q463600 Q43669 Q40662 Q332656 Q320171 Q137947 Q80513 Q324700 Q44015 Q149727 Q232427 Q60059 Q17590 Q271474 Q276148
(c(Q12737077),P417,c(Q502895))
action equal
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[ANSWERS] are the patron saints of exactly 1 occupation
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:P417 ?d . ?o rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q502895 } GROUP BY ?d } . FILTER ( ?h = 1 ) }
Saint Amand Saint Roch Ambrose Saint Francis Xavier Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Urban of Langres John the Apostle Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Charalampus
Thomas Aquinas, Albertus Magnus and Ignatius of Loyola are the patron saints of exactly 1 occupation
Thomas Aquinas Albertus Magnus Ignatius of Loyola
action equal
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:patron_saint ?d . ?o rdf:type ontology:occupation . ?d rdf:type ontology:common_name } GROUP BY ?d } . FILTER ( ?h = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q670933
P991
Q502895
USER
Who was elected in German presidential election, 2012 ?
(Q670933,P991,c(Q502895))
action filter_type
action find
entity Q670933
relation P991
type Q502895
['Q670933', 'P991', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q670933 property:P991 ?x }
German presidential election, 2012
action filter_type
action find
entity German presidential election, 2012
relation successful candidate
type common name
['German presidential election, 2012', 'successful candidate', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:German_presidential_election,_2012 property:successful_candidate ?x }
[]
common name
Q2538
SYSTEM
Joachim Gauck
Q2538
(Q670933,P991,c(Q502895))
action filter_type
action find
entity Q670933
relation P991
type Q502895
Elections [ANSWER] was elected in German presidential election, 2012
['Q670933', 'P991', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q670933 property:P991 ?x }
Joachim Gauck
Elections Joachim Gauck was elected in German presidential election, 2012
Joachim Gauck
action filter_type
action find
entity German presidential election, 2012
relation successful candidate
type common name
['German presidential election, 2012', 'successful candidate', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:German_presidential_election,_2012 property:successful_candidate ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2538
P22
Q502895
USER
Who was the dad of that one ?
(Q2538,P22,c(Q502895))
action filter_type
action find
entity Q2538
relation P22
type Q502895
['Q2538', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q2538 property:P22 ?l }
Joachim Gauck
action filter_type
action find
entity Joachim Gauck
relation father
type common name
['Joachim Gauck', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Joachim_Gauck property:father ?l }
[]
common name
Q15979411
SYSTEM
Wilhelm Joachim Gauck
Q15979411
(Q2538,P22,c(Q502895))
action filter_type
action find
entity Q2538
relation P22
type Q502895
The dad of that one was the [ANSWER]
['Q2538', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q2538 property:P22 ?l }
Wilhelm Joachim Gauck
The dad of that one was the Wilhelm Joachim Gauck
Wilhelm Joachim Gauck
action filter_type
action find
entity Joachim Gauck
relation father
type common name
['Joachim Gauck', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Joachim_Gauck property:father ?l }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q15979411 Q10284640 Q2538
P40
Q502895
USER
Does that person have Francisco Bernardino Rodrigues Silva and Joachim Gauck as a child ?
(Q15979411,P40,Q10284640) (Q15979411,P40,Q2538)
action is_in
entity Q15979411
action intersection
action find_reverse
entity Q10284640
relation P40
action find_reverse
entity Q2538
relation P40
['Q15979411', 'P40', 'Q10284640'] ['Q15979411', 'P40', 'Q2538']
ASK WHERE { resource:Q15979411 property:P40 resource:Q10284640 . resource:Q15979411 property:P40 resource:Q2538 }
Wilhelm Joachim Gauck Francisco Bernardino Rodrigues Silva Joachim Gauck
action is_in
entity Wilhelm Joachim Gauck
action intersection
action find_reverse
entity Francisco Bernardino Rodrigues Silva
relation child
action find_reverse
entity Joachim Gauck
relation child
['Wilhelm Joachim Gauck', 'child', 'Francisco Bernardino Rodrigues Silva'] ['Wilhelm Joachim Gauck', 'child', 'Joachim Gauck']
ASK WHERE { resource:Wilhelm_Joachim_Gauck property:child resource:Francisco_Bernardino_Rodrigues_Silva . resource:Wilhelm_Joachim_Gauck property:child resource:Joachim_Gauck }
[]
common name
SYSTEM
NO and YES respectively
(Q15979411,P40,Q10284640) (Q15979411,P40,Q2538)
action is_in
entity Q15979411
action intersection
action find_reverse
entity Q10284640
relation P40
action find_reverse
entity Q2538
relation P40
[ANSWER]
['Q15979411', 'P40', 'Q10284640'] ['Q15979411', 'P40', 'Q2538']
ASK WHERE { resource:Q15979411 property:P40 resource:Q10284640 . resource:Q15979411 property:P40 resource:Q2538 }
NO and YES respectively
action is_in
entity Wilhelm Joachim Gauck
action intersection
action find_reverse
entity Francisco Bernardino Rodrigues Silva
relation child
action find_reverse
entity Joachim Gauck
relation child
['Wilhelm Joachim Gauck', 'child', 'Francisco Bernardino Rodrigues Silva'] ['Wilhelm Joachim Gauck', 'child', 'Joachim Gauck']
ASK WHERE { resource:Wilhelm_Joachim_Gauck property:child resource:Francisco_Bernardino_Rodrigues_Silva . resource:Wilhelm_Joachim_Gauck property:child resource:Joachim_Gauck }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q12737077 Q2342494 Q17638008
USER
Which occupations are depicted in min number of collectables and game equipment ?
(c(Q2342494)|c(Q17638008),P180,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
[[{'concept': 'Q2342494'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?q ) { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?e ) WHERE { ?p rdf:type ?j . VALUES ( ?j ) { ( ontology:Q2342494 ) ( ontology:Q17638008 ) } } GROUP BY ?f } } . FILTER ( ?h = ?q ) . { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?h ) WHERE { { ?x property:P180 ?k . ?k rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q2342494 } UNION { ?x property:P180 ?k . ?k rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q17638008 } } GROUP BY ?k } }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
[[{'concept': 'collectable'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?q ) { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?e ) WHERE { ?p rdf:type ?j . VALUES ( ?j ) { ( ontology:collectable ) ( ontology:game_equipment ) } } GROUP BY ?f } } . FILTER ( ?h = ?q ) . { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?h ) WHERE { { ?x property:depicts ?k . ?k rdf:type ontology:occupation . ?x rdf:type ontology:collectable } UNION { ?x property:depicts ?k . ?k rdf:type ontology:occupation . ?x rdf:type ontology:game_equipment } } GROUP BY ?k } }
[]
occupation collectable game equipment
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 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 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 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(Q2342494)|c(Q17638008),P180,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
The [ANSWERS] are depicted in min number of collectables and game equipment
[[{'concept': 'Q2342494'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?q ) { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?e ) WHERE { ?p rdf:type ?j . VALUES ( ?j ) { ( ontology:Q2342494 ) ( ontology:Q17638008 ) } } GROUP BY ?f } } . FILTER ( ?h = ?q ) . { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?h ) WHERE { { ?x property:P180 ?k . ?k rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q2342494 } UNION { ?x property:P180 ?k . ?k rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q17638008 } } GROUP BY ?k } }
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 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 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 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
The farmer, nurse and tailor are depicted in min number of collectables and game equipment
farmer nurse tailor
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
[[{'concept': 'collectable'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?q ) { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?e ) WHERE { ?p rdf:type ?j . VALUES ( ?j ) { ( ontology:collectable ) ( ontology:game_equipment ) } } GROUP BY ?f } } . FILTER ( ?h = ?q ) . { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?h ) WHERE { { ?x property:depicts ?k . ?k rdf:type ontology:occupation . ?x rdf:type ontology:collectable } UNION { ?x property:depicts ?k . ?k rdf:type ontology:occupation . ?x rdf:type ontology:game_equipment } } GROUP BY ?k } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q242468
P138
Q79007
USER
Which street comes from that occupation ?
(c(Q79007),P138,Q242468)
action filter_type
action find_reverse
entity Q242468
relation P138
type Q79007
[{'concept': 'Q79007'}, 'P138', 'Q242468']
SELECT DISTINCT ?r WHERE { ?r property:P138 resource:Q242468 . ?r rdf:type ontology:Q79007 }
tailor
action filter_type
action find_reverse
entity tailor
relation named after
type street
[{'concept': 'street'}, 'named after', 'tailor']
SELECT DISTINCT ?r WHERE { ?r property:named_after resource:tailor . ?r rdf:type ontology:street }
[]
street
Clarification for simple ques.
Q242468
SYSTEM
Did you mean tailor ?
Q131512 Q186360 Q242468
(c(Q79007),P138,Q131512) (c(Q79007),P138,Q186360) (c(Q79007),P138,Q242468)
[ANSWER]
[{'concept': 'Q79007'}, 'P138', 'Q131512'] [{'concept': 'Q79007'}, 'P138', 'Q186360'] [{'concept': 'Q79007'}, 'P138', 'Q242468']
SELECT DISTINCT ?r WHERE { ?r property:P138 resource:Q242468 . ?r rdf:type ontology:Q79007 }
farmer nurse tailor
Did you mean tailor ?
tailor
[{'concept': 'street'}, 'named after', 'farmer'] [{'concept': 'street'}, 'named after', 'nurse'] [{'concept': 'street'}, 'named after', 'tailor']
SELECT DISTINCT ?r WHERE { ?r property:named_after resource:tailor . ?r rdf:type ontology:street }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q79007),P138,Q242468)
[{'concept': 'Q79007'}, 'P138', 'Q242468']
[{'concept': 'street'}, 'named after', 'tailor']
[]
Q7536834
SYSTEM
Skräddargränd
Q7536834
(c(Q79007),P138,Q242468)
action filter_type
action find_reverse
entity Q242468
relation P138
type Q79007
[ANSWER] comes from that occupation
[{'concept': 'Q79007'}, 'P138', 'Q242468']
SELECT DISTINCT ?r WHERE { ?r property:P138 resource:Q242468 . ?r rdf:type ontology:Q79007 }
Skräddargränd
Skräddargränd comes from that occupation
Skräddargränd
action filter_type
action find_reverse
entity tailor
relation named after
type street
[{'concept': 'street'}, 'named after', 'tailor']
SELECT DISTINCT ?r WHERE { ?r property:named_after resource:tailor . ?r rdf:type ontology:street }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5818431 Q7536834
P17
Q15617994
USER
Which administrative territories do Skräddargränd or Ministry of Finance Building, Brunei belong to ?
OR((Q7536834,P17,c(Q15617994)), (Q5818431,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7536834
relation P17
action find
entity Q5818431
relation P17
type Q15617994
{'OR': [['Q7536834', 'P17', {'concept': 'Q15617994'}], ['Q5818431', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?m ) { ( resource:Q5818431 ) ( resource:Q7536834 ) } . ?m property:P17 ?p } . ?p rdf:type ontology:Q15617994 }
Ministry of Finance Building, Brunei Skräddargränd
action filter_type
action union
action find
entity Skräddargränd
relation country
action find
entity Ministry of Finance Building, Brunei
relation country
type designation for an administrative territorial entity
{'OR': [['Skräddargränd', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ministry of Finance Building, Brunei', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?m ) { ( resource:Ministry_of_Finance_Building,_Brunei ) ( resource:Skräddargränd ) } . ?m property:country ?p } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q921 Q34
SYSTEM
Brunei, Sweden
Q921 Q34
OR((Q7536834,P17,c(Q15617994)), (Q5818431,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7536834
relation P17
action find
entity Q5818431
relation P17
type Q15617994
[ANSWERS] Skräddargränd or Ministry of Finance Building, Brunei belong to
{'OR': [['Q7536834', 'P17', {'concept': 'Q15617994'}], ['Q5818431', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?m ) { ( resource:Q5818431 ) ( resource:Q7536834 ) } . ?m property:P17 ?p } . ?p rdf:type ontology:Q15617994 }
Brunei Sweden
Brunei and Sweden Skräddargränd or Ministry of Finance Building, Brunei belong to
Brunei Sweden
action filter_type
action union
action find
entity Skräddargränd
relation country
action find
entity Ministry of Finance Building, Brunei
relation country
type designation for an administrative territorial entity
{'OR': [['Skräddargränd', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ministry of Finance Building, Brunei', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?m ) { ( resource:Ministry_of_Finance_Building,_Brunei ) ( resource:Skräddargränd ) } . ?m property:country ?p } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]