Simple Question (Direct)
Simple Question
Q3369184
P21
Q290
USER
What is the sex of Patrick Alexandroni ?
(Q3369184,P21,c(Q290))
action filter_type
action find
entity Q3369184
relation P21
type Q290
['Q3369184', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q3369184 property:P21 ?o . ?o rdf:type ontology:Q290 }
Patrick Alexandroni
action filter_type
action find
entity Patrick Alexandroni
relation gender
type sex
['Patrick Alexandroni', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Patrick_Alexandroni property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3369184,P21,c(Q290))
action filter_type
action find
entity Q3369184
relation P21
type Q290
The sex of Patrick Alexandroni is the [ANSWER]
['Q3369184', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q3369184 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
The sex of Patrick Alexandroni is the male
male
action filter_type
action find
entity Patrick Alexandroni
relation gender
type sex
['Patrick Alexandroni', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Patrick_Alexandroni property:gender ?o . ?o rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3369184
P19
Q20667921
USER
Where was that person born ?
(Q6581097,P19,c(Q20667921))
action filter_type
action find
entity Q3369184
relation P19
type Q20667921
['Q6581097', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q3369184 property:P19 ?z . ?z rdf:type ontology:Q20667921 }
Patrick Alexandroni
action filter_type
action find
entity Patrick Alexandroni
relation place of birth
type type of french administrative division
['male', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Patrick_Alexandroni property:place_of_birth ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q3581
SYSTEM
Roanne
Q3581
(Q6581097,P19,c(Q20667921))
action filter_type
action find
entity Q3369184
relation P19
type Q20667921
That person was born in [ANSWER]
['Q6581097', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q3369184 property:P19 ?z . ?z rdf:type ontology:Q20667921 }
Roanne
That person was born in Roanne
Roanne
action filter_type
action find
entity Patrick Alexandroni
relation place of birth
type type of french administrative division
['male', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Patrick_Alexandroni property:place_of_birth ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3369184
P106
Q12737077
USER
Which occupations have that person as his/her 's career ?
(Q3581,P106,c(Q12737077))
action filter_type
action find
entity Q3369184
relation P106
type Q12737077
['Q3581', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q3369184 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Patrick Alexandroni
action filter_type
action find
entity Patrick Alexandroni
relation occupation
type occupation
['Roanne', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Patrick_Alexandroni property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q33999 Q177220
SYSTEM
actor, singer
Q33999 Q177220
(Q3581,P106,c(Q12737077))
action filter_type
action find
entity Q3369184
relation P106
type Q12737077
[ANSWERS] have that person as his/her 's career
['Q3581', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q3369184 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
actor singer
Actor and singer have that person as his/her 's career
actor singer
action filter_type
action find
entity Patrick Alexandroni
relation occupation
type occupation
['Roanne', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Patrick_Alexandroni property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1028181
P180
Q12737077 Q3305213 Q340169
USER
Which occupations are expressed in lesser number of paintings and medias than painter ?
(c(Q3305213)|c(Q340169),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q1028181
relation P180
type Q3305213
type Q340169
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) ?m WHERE { { ?x property:P180 ?m . ?x rdf:type ontology:Q3305213 . ?m rdf:type ontology:Q12737077 } UNION { ?m rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q340169 . ?x property:P180 ?m } } GROUP BY ?m } . FILTER ( ?j < ?s ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:P180 resource:Q1028181 . { ?r rdf:type ?k . VALUES ( ?k ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } } } } }
painter
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action count
action filter_multi_types
action find_reverse
entity painter
relation depicts
type painting
type media
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) ?m WHERE { { ?x property:depicts ?m . ?x rdf:type ontology:painting . ?m rdf:type ontology:occupation } UNION { ?m rdf:type ontology:occupation . ?x rdf:type ontology:media . ?x property:depicts ?m } } GROUP BY ?m } . FILTER ( ?j < ?s ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:depicts resource:painter . { ?r rdf:type ?k . VALUES ( ?k ) { ( ontology:media ) ( ontology:painting ) } } } } }
[]
occupation painting media
Q242468 Q182436 Q42973
SYSTEM
tailor, librarian, architect
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q1569439 Q16735601 Q37226 Q27621374 Q152355 Q1218776 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q1250916 Q4610556 Q161944 Q472898 Q7358 Q19968805 Q329737 Q47064 Q185196 Q328325 Q11900058 Q212238 Q22085061 Q3430033 Q42973 Q14948018 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 Q1104153 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q4594605 Q54128 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q1509714 Q152002 Q1511216 Q16533 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q170779 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q1627992 Q2309784 Q253567 Q3439798 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q160131 Q4990607 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(Q340169),P180,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q1028181
relation P180
type Q3305213
type Q340169
[ANSWERS] are expressed in lesser number of paintings and medias than painter
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) ?m WHERE { { ?x property:P180 ?m . ?x rdf:type ontology:Q3305213 . ?m rdf:type ontology:Q12737077 } UNION { ?m rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q340169 . ?x property:P180 ?m } } GROUP BY ?m } . FILTER ( ?j < ?s ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:P180 resource:Q1028181 . { ?r rdf:type ?k . VALUES ( ?k ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } } } } }
fiddler acrobat milkmaid worker standard-bearer sheep shearer florist teacher bear hunter cobbler arriero sewing executor astronaut cooper house painter organist 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 clown spinner butcher military personnel midwife stonemason explorer civil servant sower abbé architect street musician 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 canon discus thrower bassoonist mufti cowboy rabbi mime artist scientist harpist blacksmith magistrate domestic worker tailor cardinal housekeeper theologian courier monarch porter pastor courtier judge matador goldsmith waterseller pretender astronomer surgeon domestic worker cook Kassandra 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 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
Tailor, librarian and architect are expressed in lesser number of paintings and medias than painter
tailor librarian architect
action less
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action count
action filter_multi_types
action find_reverse
entity painter
relation depicts
type painting
type media
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) ?m WHERE { { ?x property:depicts ?m . ?x rdf:type ontology:painting . ?m rdf:type ontology:occupation } UNION { ?m rdf:type ontology:occupation . ?x rdf:type ontology:media . ?x property:depicts ?m } } GROUP BY ?m } . FILTER ( ?j < ?s ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:depicts resource:painter . { ?r rdf:type ?k . VALUES ( ?k ) { ( ontology:media ) ( ontology:painting ) } } } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q242468 Q182436 Q42973
P417
Q502895
USER
What people are the patron saint of those occupations ?
(Q242468,P417,c(Q502895)) (Q182436,P417,c(Q502895)) (Q42973,P417,c(Q502895))
action filter_type
action find
entity prev_answer
relation P417
type Q502895
['Q242468', 'P417', {'concept': 'Q502895'}] ['Q182436', 'P417', {'concept': 'Q502895'}] ['Q42973', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?f property:P417 ?g . ?g rdf:type ontology:Q502895 . VALUES ( ?f ) { ( resource:Q19754019 ) ( resource:Q11957145 ) ( resource:Q1934482 ) } }
tailor librarian architect
action filter_type
action find
entity prev_answer
relation patron saint
type common name
['tailor', 'patron saint', {'concept': 'common name'}] ['librarian', 'patron saint', {'concept': 'common name'}] ['architect', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?f property:patron_saint ?g . ?g rdf:type ontology:common_name . VALUES ( ?f ) { ( resource:fiddler ) ( resource:acrobat ) ( resource:milkmaid ) } }
[]
common name
Q44248 Q44265 Q43982
SYSTEM
Jerome, Benedict of Nursia, Bartholomew the Apostle
Q179718 Q43982 Q179718 Q44248 Q17590 Q43669 Q192816 Q44265
(Q242468,P417,c(Q502895)) (Q182436,P417,c(Q502895)) (Q42973,P417,c(Q502895))
action filter_type
action find
entity prev_answer
relation P417
type Q502895
[ANSWERS] are the patron saint of those occupations
['Q242468', 'P417', {'concept': 'Q502895'}] ['Q182436', 'P417', {'concept': 'Q502895'}] ['Q42973', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?f property:P417 ?g . ?g rdf:type ontology:Q502895 . VALUES ( ?f ) { ( resource:Q19754019 ) ( resource:Q11957145 ) ( resource:Q1934482 ) } }
Catherine of Alexandria Bartholomew the Apostle Catherine of Alexandria Jerome Lawrence of Rome Thomas the Apostle Saint Barbara Benedict of Nursia
Jerome, Benedict of Nursia and Bartholomew the Apostle are the patron saint of those occupations
Jerome Benedict of Nursia Bartholomew the Apostle
action filter_type
action find
entity prev_answer
relation patron saint
type common name
['tailor', 'patron saint', {'concept': 'common name'}] ['librarian', 'patron saint', {'concept': 'common name'}] ['architect', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?f property:patron_saint ?g . ?g rdf:type ontology:common_name . VALUES ( ?f ) { ( resource:fiddler ) ( resource:acrobat ) ( resource:milkmaid ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q44248 Q44265 Q43982
P138
Q16970
USER
Which churches have Jerome, Benedict of Nursia and Bartholomew the Apostle as their toponym ?
(c(Q16970),P138,Q44248) (c(Q16970),P138,Q44265) (c(Q16970),P138,Q43982)
action union
action filter_type
action find_reverse
entity Q44248
relation P138
type Q16970
action filter_type
action find_reverse
entity Q44265
relation P138
type Q16970
action filter_type
action find_reverse
entity Q43982
relation P138
type Q16970
[{'concept': 'Q16970'}, 'P138', 'Q44248'] [{'concept': 'Q16970'}, 'P138', 'Q44265'] [{'concept': 'Q16970'}, 'P138', 'Q43982']
SELECT DISTINCT ?g WHERE { { ?g property:P138 resource:Q44265 . ?g rdf:type ontology:Q16970 } UNION { ?g rdf:type ontology:Q16970 . ?g property:P138 resource:Q44248 } }
Jerome Benedict of Nursia Bartholomew the Apostle
action union
action filter_type
action find_reverse
entity Jerome
relation named after
type church
action filter_type
action find_reverse
entity Benedict of Nursia
relation named after
type church
action filter_type
action find_reverse
entity Bartholomew the Apostle
relation named after
type church
[{'concept': 'church'}, 'named after', 'Jerome'] [{'concept': 'church'}, 'named after', 'Benedict of Nursia'] [{'concept': 'church'}, 'named after', 'Bartholomew the Apostle']
SELECT DISTINCT ?g WHERE { { ?g property:named_after resource:Benedict_of_Nursia . ?g rdf:type ontology:church } UNION { ?g rdf:type ontology:church . ?g property:named_after resource:Jerome } }
[]
church
Q2942772 Q3669588 Q3669482
SYSTEM
Cathedral of Saint-Jérôme, Church of Saint Benedict, Church of Saint Bartolomeo
Q2942772 Q3669588 Q3669482
(c(Q16970),P138,Q44248) (c(Q16970),P138,Q44265) (c(Q16970),P138,Q43982)
action union
action filter_type
action find_reverse
entity Q44248
relation P138
type Q16970
action filter_type
action find_reverse
entity Q44265
relation P138
type Q16970
action filter_type
action find_reverse
entity Q43982
relation P138
type Q16970
[ANSWERS] have Jerome, Benedict of Nursia and Bartholomew the Apostle as their toponym
[{'concept': 'Q16970'}, 'P138', 'Q44248'] [{'concept': 'Q16970'}, 'P138', 'Q44265'] [{'concept': 'Q16970'}, 'P138', 'Q43982']
SELECT DISTINCT ?g WHERE { { ?g property:P138 resource:Q44265 . ?g rdf:type ontology:Q16970 } UNION { ?g rdf:type ontology:Q16970 . ?g property:P138 resource:Q44248 } }
Cathedral of Saint-Jérôme Church of Saint Benedict Church of Saint Bartolomeo
Cathedral of Saint-Jérôme, Church of Saint Benedict and Church of Saint Bartolomeo have Jerome, Benedict of Nursia and Bartholomew the Apostle as their toponym
Cathedral of Saint-Jérôme Church of Saint Benedict Church of Saint Bartolomeo
action union
action filter_type
action find_reverse
entity Jerome
relation named after
type church
action filter_type
action find_reverse
entity Benedict of Nursia
relation named after
type church
action filter_type
action find_reverse
entity Bartholomew the Apostle
relation named after
type church
[{'concept': 'church'}, 'named after', 'Jerome'] [{'concept': 'church'}, 'named after', 'Benedict of Nursia'] [{'concept': 'church'}, 'named after', 'Bartholomew the Apostle']
SELECT DISTINCT ?g WHERE { { ?g property:named_after resource:Benedict_of_Nursia . ?g rdf:type ontology:church } UNION { ?g rdf:type ontology:church . ?g property:named_after resource:Jerome } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3669482
P17
Q15617994
USER
Which administrative territory is that church situated in ?
(Q3669482,P17,c(Q15617994))
action filter_type
action find
entity Q3669482
relation P17
type Q15617994
['Q3669482', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q3669482 property:P17 ?r }
Church of Saint Bartolomeo
action filter_type
action find
entity Church of Saint Bartolomeo
relation country
type designation for an administrative territorial entity
['Church of Saint Bartolomeo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Church_of_Saint_Bartolomeo property:country ?r }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q3669482
SYSTEM
Did you mean Church of Saint Bartolomeo ?
Q2942772 Q3669588 Q3669482
(Q2942772,P17,c(Q15617994)) (Q3669588,P17,c(Q15617994)) (Q3669482,P17,c(Q15617994))
[ANSWER]
['Q2942772', 'P17', {'concept': 'Q15617994'}] ['Q3669588', 'P17', {'concept': 'Q15617994'}] ['Q3669482', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q3669482 property:P17 ?r }
Cathedral of Saint-Jérôme Church of Saint Benedict Church of Saint Bartolomeo
Did you mean Church of Saint Bartolomeo ?
Church of Saint Bartolomeo
['Cathedral of Saint-Jérôme', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Church of Saint Benedict', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Church of Saint Bartolomeo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Church_of_Saint_Bartolomeo property:country ?r }
[]
Simple Question (Coreferenced)
USER
Yes
(Q3669482,P17,c(Q15617994))
['Q3669482', 'P17', {'concept': 'Q15617994'}]
['Church of Saint Bartolomeo', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38
SYSTEM
Italy
Q38
(Q3669482,P17,c(Q15617994))
action filter_type
action find
entity Q3669482
relation P17
type Q15617994
That church is situated in [ANSWER]
['Q3669482', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q3669482 property:P17 ?r }
Italy
That church is situated in Italy
Italy
action filter_type
action find
entity Church of Saint Bartolomeo
relation country
type designation for an administrative territorial entity
['Church of Saint Bartolomeo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Church_of_Saint_Bartolomeo property:country ?r }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P655
Q502895 Q571 Q2342494
USER
How many people are the translator of exactly 4 books and collectables ?
(c(Q571)|c(Q2342494),P655,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P655
type Q502895
type Q571
action find_reverse_tuple_counts
relation P655
type Q502895
type Q2342494
value 4
[[{'concept': 'Q571'}, {'concept': 'Q2342494'}], 'P655', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) ?h WHERE { VALUES ( ?n ) { ( ontology:Q571 ) ( ontology:Q2342494 ) } . ?p rdf:type ?n } GROUP BY ?h } . FILTER ( ?w = 4 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation translator
type common name
type book
action find_reverse_tuple_counts
relation translator
type common name
type collectable
value 4
[[{'concept': 'book'}, {'concept': 'collectable'}], 'translator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) ?h WHERE { VALUES ( ?n ) { ( ontology:book ) ( ontology:collectable ) } . ?p rdf:type ?n } GROUP BY ?h } . FILTER ( ?w = 4 ) }
[]
common name book collectable
SYSTEM
4
Q3156735 Q532457 Q8020113 Q1287990
(c(Q571)|c(Q2342494),P655,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P655
type Q502895
type Q571
action find_reverse_tuple_counts
relation P655
type Q502895
type Q2342494
value 4
[ANSWER]
[[{'concept': 'Q571'}, {'concept': 'Q2342494'}], 'P655', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) ?h WHERE { VALUES ( ?n ) { ( ontology:Q571 ) ( ontology:Q2342494 ) } . ?p rdf:type ?n } GROUP BY ?h } . FILTER ( ?w = 4 ) }
J.-Wladimir Bienstock Edward FitzGerald William Weaver James Legge
4
action count
action equal
action union
action find_reverse_tuple_counts
relation translator
type common name
type book
action find_reverse_tuple_counts
relation translator
type common name
type collectable
value 4
[[{'concept': 'book'}, {'concept': 'collectable'}], 'translator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) ?h WHERE { VALUES ( ?n ) { ( ontology:book ) ( ontology:collectable ) } . ?p rdf:type ?n } GROUP BY ?h } . FILTER ( ?w = 4 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2942772
P17
Q1048835
USER
Which political territory is Cathedral of Saint-Jérôme a part of ?
(Q2942772,P17,c(Q1048835))
action filter_type
action find
entity Q2942772
relation P17
type Q1048835
['Q2942772', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1048835 . resource:Q2942772 property:P17 ?f }
Cathedral of Saint-Jérôme
action filter_type
action find
entity Cathedral of Saint-Jérôme
relation country
type political territorial entity
['Cathedral of Saint-Jérôme', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_territorial_entity . resource:Cathedral_of_Saint-Jérôme property:country ?f }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q2942772,P17,c(Q1048835))
action filter_type
action find
entity Q2942772
relation P17
type Q1048835
[ANSWER] is Cathedral of Saint-Jérôme a part of
['Q2942772', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1048835 . resource:Q2942772 property:P17 ?f }
Canada
Canada is Cathedral of Saint-Jérôme a part of
Canada
action filter_type
action find
entity Cathedral of Saint-Jérôme
relation country
type political territorial entity
['Cathedral of Saint-Jérôme', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_territorial_entity . resource:Cathedral_of_Saint-Jérôme property:country ?f }
[]