Simple Question (Direct)
Simple Question
Q1645329
P39
Q12737077
USER
Which occupations were the positions for which Pandolfo Masca of Pisa were appointed ?
(Q1645329,P39,c(Q12737077))
action filter_type
action find
entity Q1645329
relation P39
type Q12737077
['Q1645329', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q1645329 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
Pandolfo Masca of Pisa
action filter_type
action find
entity Pandolfo Masca of Pisa
relation position held
type occupation
['Pandolfo Masca of Pisa', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Pandolfo_Masca_of_Pisa property:position_held ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q2033341 Q1104153
SYSTEM
cardinal priest, canon
Q2033341 Q1104153
(Q1645329,P39,c(Q12737077))
action filter_type
action find
entity Q1645329
relation P39
type Q12737077
[ANSWERS] were the positions for which Pandolfo Masca of Pisa were appointed
['Q1645329', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q1645329 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
cardinal priest canon
Cardinal priest and canon were the positions for which Pandolfo Masca of Pisa were appointed
cardinal priest canon
action filter_type
action find
entity Pandolfo Masca of Pisa
relation position held
type occupation
['Pandolfo Masca of Pisa', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Pandolfo_Masca_of_Pisa property:position_held ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1645329
P106
Q12737077
USER
What is the job of that person ?
(Q2033341,P106,c(Q12737077)) (Q1104153,P106,c(Q12737077))
action filter_type
action find
entity Q1645329
relation P106
type Q12737077
['Q2033341', 'P106', {'concept': 'Q12737077'}] ['Q1104153', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q1645329 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
Pandolfo Masca of Pisa
action filter_type
action find
entity Pandolfo Masca of Pisa
relation occupation
type occupation
['cardinal priest', 'occupation', {'concept': 'occupation'}] ['canon', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Pandolfo_Masca_of_Pisa property:occupation ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q250867
SYSTEM
Catholic priest
Q250867
(Q2033341,P106,c(Q12737077)) (Q1104153,P106,c(Q12737077))
action filter_type
action find
entity Q1645329
relation P106
type Q12737077
The job of that person is a [ANSWER]
['Q2033341', 'P106', {'concept': 'Q12737077'}] ['Q1104153', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q1645329 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
Catholic priest
The job of that person is a Catholic priest
Catholic priest
action filter_type
action find
entity Pandolfo Masca of Pisa
relation occupation
type occupation
['cardinal priest', 'occupation', {'concept': 'occupation'}] ['canon', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Pandolfo_Masca_of_Pisa property:occupation ?g . ?g rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q11461170 Q1645329
P106
Q12737077
USER
Or Ai Komatsu?
OR((Q1645329,P106,c(Q12737077)), (Q11461170,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1645329
relation P106
action find
entity Q11461170
relation P106
type Q12737077
{'OR': [['Q1645329', 'P106', {'concept': 'Q12737077'}], ['Q11461170', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?l WHERE { { ?u property:P106 ?l . VALUES ( ?u ) { ( resource:Q1645329 ) ( resource:Q11461170 ) } } . ?l rdf:type ontology:Q12737077 }
Ai Komatsu Pandolfo Masca of Pisa
action filter_type
action union
action find
entity Pandolfo Masca of Pisa
relation occupation
action find
entity Ai Komatsu
relation occupation
type occupation
{'OR': [['Pandolfo Masca of Pisa', 'occupation', {'concept': 'occupation'}], ['Ai Komatsu', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?l WHERE { { ?u property:occupation ?l . VALUES ( ?u ) { ( resource:Pandolfo_Masca_of_Pisa ) ( resource:Ai_Komatsu ) } } . ?l rdf:type ontology:occupation }
[]
occupation
Q3357567 Q250867
SYSTEM
fashion model, Catholic priest
Q3357567 Q250867
OR((Q1645329,P106,c(Q12737077)), (Q11461170,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1645329
relation P106
action find
entity Q11461170
relation P106
type Q12737077
[ANSWERS]
{'OR': [['Q1645329', 'P106', {'concept': 'Q12737077'}], ['Q11461170', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?l WHERE { { ?u property:P106 ?l . VALUES ( ?u ) { ( resource:Q1645329 ) ( resource:Q11461170 ) } } . ?l rdf:type ontology:Q12737077 }
fashion model Catholic priest
fashion model Catholic priest
action filter_type
action union
action find
entity Pandolfo Masca of Pisa
relation occupation
action find
entity Ai Komatsu
relation occupation
type occupation
{'OR': [['Pandolfo Masca of Pisa', 'occupation', {'concept': 'occupation'}], ['Ai Komatsu', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?l WHERE { { ?u property:occupation ?l . VALUES ( ?u ) { ( resource:Pandolfo_Masca_of_Pisa ) ( resource:Ai_Komatsu ) } } . ?l rdf:type ontology:occupation }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P180
Q12737077 Q17638008 Q1792379
USER
How many occupations are depicted in greater number of game equipment or art genres than that occupation ?
(c(Q17638008)|c(Q1792379),P180,c(Q12737077))
[[{'concept': 'Q17638008'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P180 ?y } UNION { ?x property:P180 ?y } } . ?z rdf:type ontology:Q17638008 . ?y rdf:type ontology:Q528892 . ?x rdf:type ontology:Q1792379 }
[[{'concept': 'game equipment'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:depicts ?y } UNION { ?x property:depicts ?y } } . ?z rdf:type ontology:game_equipment . ?y rdf:type ontology:occupation . ?x rdf:type ontology:art_genre }
[]
occupation game equipment art genre
Comparative|Count over More/Less|Mult. entity type|Clarification
Q3357567
SYSTEM
Did you mean fashion model ?
(c(Q17638008)|c(Q1792379),P180,c(Q12737077))
[ANSWER]
[[{'concept': 'Q17638008'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P180 ?y } UNION { ?x property:P180 ?y } } . ?z rdf:type ontology:Q17638008 . ?y rdf:type ontology:Q528892 . ?x rdf:type ontology:Q1792379 }
Did you mean fashion model ?
fashion model
[[{'concept': 'game equipment'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:depicts ?y } UNION { ?x property:depicts ?y } } . ?z rdf:type ontology:game_equipment . ?y rdf:type ontology:occupation . ?x rdf:type ontology:art_genre }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Catholic priest. Could you tell me the answer for that?
(c(Q17638008)|c(Q1792379),P180,c(Q12737077))
Q250867
[[{'concept': 'Q17638008'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
[[{'concept': 'game equipment'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
[]
SYSTEM
4
Q2079936 Q12097 Q4991371 Q2730732
(c(Q17638008)|c(Q1792379),P180,c(Q12737077))
[ANSWER]
[[{'concept': 'Q17638008'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P180 ?y } UNION { ?x property:P180 ?y } } . ?z rdf:type ontology:Q17638008 . ?y rdf:type ontology:Q528892 . ?x rdf:type ontology:Q1792379 }
king of marksmen king soldier equestrian
4
[[{'concept': 'game equipment'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:depicts ?y } UNION { ?x property:depicts ?y } } . ?z rdf:type ontology:game_equipment . ?y rdf:type ontology:occupation . ?x rdf:type ontology:art_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1104153
P138
Q34442
USER
Which road is named after canon ?
(c(Q34442),P138,Q1104153)
action filter_type
action find_reverse
entity Q1104153
relation P138
type Q34442
[{'concept': 'Q34442'}, 'P138', 'Q1104153']
SELECT DISTINCT ?g WHERE { ?g property:P138 resource:Q1104153 . ?g rdf:type ontology:Q34442 }
canon
action filter_type
action find_reverse
entity canon
relation named after
type road
[{'concept': 'road'}, 'named after', 'canon']
SELECT DISTINCT ?g WHERE { ?g property:named_after resource:canon . ?g rdf:type ontology:road }
[]
road
Q3447365
SYSTEM
rue Chanoinesse
Q3447365
(c(Q34442),P138,Q1104153)
action filter_type
action find_reverse
entity Q1104153
relation P138
type Q34442
[ANSWER] is named after canon
[{'concept': 'Q34442'}, 'P138', 'Q1104153']
SELECT DISTINCT ?g WHERE { ?g property:P138 resource:Q1104153 . ?g rdf:type ontology:Q34442 }
rue Chanoinesse
Rue Chanoinesse is named after canon
rue Chanoinesse
action filter_type
action find_reverse
entity canon
relation named after
type road
[{'concept': 'road'}, 'named after', 'canon']
SELECT DISTINCT ?g WHERE { ?g property:named_after resource:canon . ?g rdf:type ontology:road }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1104153
P361
Q151885
USER
Which concept is canon a part of ?
(Q1104153,P361,c(Q151885))
action filter_type
action find
entity Q1104153
relation P361
type Q151885
['Q1104153', 'P361', {'concept': 'Q151885'}]
SELECT DISTINCT ?c WHERE { resource:Q1104153 property:P361 ?c . ?c rdf:type ontology:Q151885 }
canon
action filter_type
action find
entity canon
relation part of
type concept
['canon', 'part of', {'concept': 'concept'}]
SELECT DISTINCT ?c WHERE { resource:canon property:part_of ?c . ?c rdf:type ontology:concept }
[]
concept
Q177826
SYSTEM
clergy
Q177826
(Q1104153,P361,c(Q151885))
action filter_type
action find
entity Q1104153
relation P361
type Q151885
Which concept is canon a part of
['Q1104153', 'P361', {'concept': 'Q151885'}]
SELECT DISTINCT ?c WHERE { resource:Q1104153 property:P361 ?c . ?c rdf:type ontology:Q151885 }
clergy
Which concept is canon a part of
clergy
action filter_type
action find
entity canon
relation part of
type concept
['canon', 'part of', {'concept': 'concept'}]
SELECT DISTINCT ?c WHERE { resource:canon property:part_of ?c . ?c rdf:type ontology:concept }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q177826
P180
Q1439691
USER
Which photographic techniques depict that concept ?
(c(Q1439691),P180,Q177826)
action filter_type
action find_reverse
entity Q177826
relation P180
type Q1439691
[{'concept': 'Q1439691'}, 'P180', 'Q177826']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1439691 . ?s property:P180 resource:Q177826 }
clergy
action filter_type
action find_reverse
entity clergy
relation depicts
type photographic technique
[{'concept': 'photographic technique'}, 'depicts', 'clergy']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:photographic_technique . ?s property:depicts resource:clergy }
[]
photographic technique
Q21651638 Q22677015 Q22677018
SYSTEM
25 Congregationalists, Methodistiaid Calfinaidd Sir Feirionydd, Methodistiaid Sir Fflint
Q21651638 Q22677020 Q22677015 Q22677018 Q22676028 Q22677013 Q22677017 Q22677016 Q21665521 Q22677014
(c(Q1439691),P180,Q177826)
action filter_type
action find_reverse
entity Q177826
relation P180
type Q1439691
[ANSWERS] depict that concept
[{'concept': 'Q1439691'}, 'P180', 'Q177826']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1439691 . ?s property:P180 resource:Q177826 }
25 Congregationalists Methodistiaid Sir Frycheiniog Methodistiaid Calfinaidd Sir Feirionydd Methodistiaid Sir Fflint M.C. Sir Fynwy Meth Calfinaidd Lleyn ac Eifionydd Methodistiaid Calfinaidd Sir Gaerfyrddyn Methodistiaid Calfinaidd Sir Forganwg (1868) Y tadau ymneilltuol Methodistiaid Calfinaidd Sir Aberteifi
25 Congregationalists, Methodistiaid Calfinaidd Sir Feirionydd and Methodistiaid Sir Fflint depict that concept
25 Congregationalists Methodistiaid Calfinaidd Sir Feirionydd Methodistiaid Sir Fflint
action filter_type
action find_reverse
entity clergy
relation depicts
type photographic technique
[{'concept': 'photographic technique'}, 'depicts', 'clergy']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:photographic_technique . ?s property:depicts resource:clergy }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q177826
P463
Q502895
USER
Which person is a part of clergy ?
(c(Q502895),P463,Q177826)
action filter_type
action find_reverse
entity Q177826
relation P463
type Q502895
[{'concept': 'Q502895'}, 'P463', 'Q177826']
SELECT DISTINCT ?f WHERE { ?f property:P463 resource:Q177826 . ?f rdf:type ontology:Q502895 }
clergy
action filter_type
action find_reverse
entity clergy
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'clergy']
SELECT DISTINCT ?f WHERE { ?f property:member_of resource:clergy . ?f rdf:type ontology:common_name }
[]
common name
Q26821175
SYSTEM
Jean-Pierre-Joseph Masclet
Q26821175
(c(Q502895),P463,Q177826)
action filter_type
action find_reverse
entity Q177826
relation P463
type Q502895
[ANSWER] is a part of clergy
[{'concept': 'Q502895'}, 'P463', 'Q177826']
SELECT DISTINCT ?f WHERE { ?f property:P463 resource:Q177826 . ?f rdf:type ontology:Q502895 }
Jean-Pierre-Joseph Masclet
Jean-Pierre-Joseph Masclet is a part of clergy
Jean-Pierre-Joseph Masclet
action filter_type
action find_reverse
entity clergy
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'clergy']
SELECT DISTINCT ?f WHERE { ?f property:member_of resource:clergy . ?f rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q3574843
P1303
Q34379 Q502895
USER
How many musical instruments are played by lesser number of people than tonbak ?
(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 Q3574843
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { ?m rdf:type ontology:Q502895 . ?m property:P1303 resource:Q3574843 } } . FILTER ( ?w < ?o ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?w ) WHERE { ?z rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 . ?q property:P1303 ?z } GROUP BY ?z } }
tonbak
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 tonbak
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { ?m rdf:type ontology:common_name . ?m property:instrument resource:tonbak } } . FILTER ( ?w < ?o ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?w ) WHERE { ?z rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name . ?q property:instrument ?z } GROUP BY ?z } }
[]
musical instrument common name
SYSTEM
36
Q890073 Q1178361 Q604538 Q2660670 Q39777 Q678090 Q490054 Q873588 Q593995 Q1327500 Q1879664 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q1024685 Q816793 Q244976 Q1179017 Q320341 Q748455 Q669370 Q290951 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q173453 Q744831 Q963150 Q16155191 Q644440 Q497224 Q3623688
(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 Q3574843
relation P1303
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { ?m rdf:type ontology:Q502895 . ?m property:P1303 resource:Q3574843 } } . FILTER ( ?w < ?o ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?w ) WHERE { ?z rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 . ?q property:P1303 ?z } GROUP BY ?z } }
Body percussion davul Temple block Irish bouzouki maraca Twelve-string guitar Ondioline Jinghu player piano electronic musical instrument spoon Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cabasa Bendir bodhrán Daxophone celesta cajón gusle Kamancheh Hardanger fiddle transverse flute baritone horn morin khuur Timbales wind instrument Mridangam tenor guitar Saraswati veena Lap steel guitar Kayamb Paraguayan harp
36
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 tonbak
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { ?m rdf:type ontology:common_name . ?m property:instrument resource:tonbak } } . FILTER ( ?w < ?o ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?w ) WHERE { ?z rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name . ?q property:instrument ?z } GROUP BY ?z } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q120585
P1303
Q34379 Q502895
USER
And also tell me about Tsuzumi?
(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 Q120585
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 } GROUP BY ?c } . FILTER ( ?g < ?q ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { ?l property:P1303 resource:Q120585 . ?l rdf:type ontology:Q502895 } } }
Tsuzumi
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 Tsuzumi
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name } GROUP BY ?c } . FILTER ( ?g < ?q ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { ?l property:instrument resource:Tsuzumi . ?l rdf:type ontology:common_name } } }
[]
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 Q120585
relation P1303
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 } GROUP BY ?c } . FILTER ( ?g < ?q ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { ?l property:P1303 resource:Q120585 . ?l rdf:type ontology:Q502895 } } }
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 Tsuzumi
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name } GROUP BY ?c } . FILTER ( ?g < ?q ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { ?l property:instrument resource:Tsuzumi . ?l rdf:type ontology:common_name } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3447365
P669
Q41176
USER
Which building is located on rue Chanoinesse ?
(c(Q41176),P669,Q3447365)
action filter_type
action find_reverse
entity Q3447365
relation P669
type Q41176
[{'concept': 'Q41176'}, 'P669', 'Q3447365']
SELECT DISTINCT ?h WHERE { ?h property:P669 resource:Q3447365 . ?h rdf:type ontology:Q41176 }
rue Chanoinesse
action filter_type
action find_reverse
entity rue Chanoinesse
relation located on street
type building
[{'concept': 'building'}, 'located on street', 'rue Chanoinesse']
SELECT DISTINCT ?h WHERE { ?h property:located_on_street resource:rue_Chanoinesse . ?h rdf:type ontology:building }
[]
building
Q22302748
SYSTEM
ancienne chapelle Saint-Aignan
Q22302748
(c(Q41176),P669,Q3447365)
action filter_type
action find_reverse
entity Q3447365
relation P669
type Q41176
[ANSWER] is located on rue Chanoinesse
[{'concept': 'Q41176'}, 'P669', 'Q3447365']
SELECT DISTINCT ?h WHERE { ?h property:P669 resource:Q3447365 . ?h rdf:type ontology:Q41176 }
ancienne chapelle Saint-Aignan
Ancienne chapelle Saint-Aignan is located on rue Chanoinesse
ancienne chapelle Saint-Aignan
action filter_type
action find_reverse
entity rue Chanoinesse
relation located on street
type building
[{'concept': 'building'}, 'located on street', 'rue Chanoinesse']
SELECT DISTINCT ?h WHERE { ?h property:located_on_street resource:rue_Chanoinesse . ?h rdf:type ontology:building }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3447365
P47
Q34442
USER
Which roads are next to the border of rue Chanoinesse ?
(c(Q34442),P47,Q3447365)
action filter_type
action find
entity Q3447365
relation P47
type Q34442
[{'concept': 'Q34442'}, 'P47', 'Q3447365']
SELECT DISTINCT ?d WHERE { resource:Q3447365 property:P47 ?d . ?d rdf:type ontology:Q34442 }
rue Chanoinesse
action filter_type
action find
entity rue Chanoinesse
relation shares border with
type road
[{'concept': 'road'}, 'shares border with', 'rue Chanoinesse']
SELECT DISTINCT ?d WHERE { resource:rue_Chanoinesse property:shares_border_with ?d . ?d rdf:type ontology:road }
[]
road
Q3450478 Q3452198 Q3451383
SYSTEM
rue d'Arcole, rue du Cloître-Notre-Dame, rue de la Colombe
Q3450478 Q3452198 Q3451383 Q3449097
(c(Q34442),P47,Q3447365)
action filter_type
action find
entity Q3447365
relation P47
type Q34442
[ANSWERS] are next to the border of rue Chanoinesse
[{'concept': 'Q34442'}, 'P47', 'Q3447365']
SELECT DISTINCT ?d WHERE { resource:Q3447365 property:P47 ?d . ?d rdf:type ontology:Q34442 }
rue d'Arcole rue du Cloître-Notre-Dame rue de la Colombe rue Massillon
Rue d'Arcole, rue du Cloître-Notre-Dame and rue de la Colombe are next to the border of rue Chanoinesse
rue d'Arcole rue du Cloître-Notre-Dame rue de la Colombe
action filter_type
action find
entity rue Chanoinesse
relation shares border with
type road
[{'concept': 'road'}, 'shares border with', 'rue Chanoinesse']
SELECT DISTINCT ?d WHERE { resource:rue_Chanoinesse property:shares_border_with ?d . ?d rdf:type ontology:road }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q3450478 Q3452198 Q3451383
P17
Q15617994
USER
Which administrative territories are those roads located in ?
(Q3450478,P17,c(Q15617994)) (Q3452198,P17,c(Q15617994)) (Q3451383,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q3450478', 'P17', {'concept': 'Q15617994'}] ['Q3452198', 'P17', {'concept': 'Q15617994'}] ['Q3451383', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?i property:P17 ?v . VALUES ( ?i ) { ( resource:Q3450478 ) ( resource:Q3452198 ) ( resource:Q3451383 ) } . ?v rdf:type ontology:Q15617994 }
rue d'Arcole rue du Cloître-Notre-Dame rue de la Colombe
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
["rue d'Arcole", 'country', {'concept': 'designation for an administrative territorial entity'}] ['rue du Cloître-Notre-Dame', 'country', {'concept': 'designation for an administrative territorial entity'}] ['rue de la Colombe', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?i property:country ?v . VALUES ( ?i ) { ( resource:rue_d'Arcole ) ( resource:rue_du_Cloître-Notre-Dame ) ( resource:rue_de_la_Colombe ) } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q142 Q142
SYSTEM
France
Q142 Q142 Q142
(Q3450478,P17,c(Q15617994)) (Q3452198,P17,c(Q15617994)) (Q3451383,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
Those roads are located in [ANSWER], [ANSWER] and [ANSWER]
['Q3450478', 'P17', {'concept': 'Q15617994'}] ['Q3452198', 'P17', {'concept': 'Q15617994'}] ['Q3451383', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?i property:P17 ?v . VALUES ( ?i ) { ( resource:Q3450478 ) ( resource:Q3452198 ) ( resource:Q3451383 ) } . ?v rdf:type ontology:Q15617994 }
France France France
Those roads are located in France, France and France
France France France
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
["rue d'Arcole", 'country', {'concept': 'designation for an administrative territorial entity'}] ['rue du Cloître-Notre-Dame', 'country', {'concept': 'designation for an administrative territorial entity'}] ['rue de la Colombe', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?i property:country ?v . VALUES ( ?i ) { ( resource:rue_d'Arcole ) ( resource:rue_du_Cloître-Notre-Dame ) ( resource:rue_de_la_Colombe ) } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]