Simple Question (Direct)
Simple Question
Q192039
P407
Q34770
USER
What is the language of Don Giovanni ?
(Q192039,P407,c(Q34770))
action filter_type
action find
entity Q192039
relation P407
type Q34770
['Q192039', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q34770 . resource:Q192039 property:P407 ?x }
Don Giovanni
action filter_type
action find
entity Don Giovanni
relation language of work or name
type language
['Don Giovanni', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:language . resource:Don_Giovanni property:language_of_work_or_name ?x }
[]
language
Q652
SYSTEM
Italian
Q652
(Q192039,P407,c(Q34770))
action filter_type
action find
entity Q192039
relation P407
type Q34770
The language of Don Giovanni is an [ANSWER]
['Q192039', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q34770 . resource:Q192039 property:P407 ?x }
Italian
The language of Don Giovanni is an Italian
Italian
action filter_type
action find
entity Don Giovanni
relation language of work or name
type language
['Don Giovanni', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:language . resource:Don_Giovanni property:language_of_work_or_name ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q192039
P144
Q838948
USER
Which work of art is that theatrical genre based on ?
(Q652,P144,c(Q838948))
action filter_type
action find
entity Q192039
relation P144
type Q838948
['Q652', 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q838948 . resource:Q192039 property:P144 ?z }
Don Giovanni
action filter_type
action find
entity Don Giovanni
relation based on
type work of art
['Italian', 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:work_of_art . resource:Don_Giovanni property:based_on ?z }
[]
work of art
Q2714218
SYSTEM
The Trickster of Seville and the Stone Guest
Q2714218
(Q652,P144,c(Q838948))
action filter_type
action find
entity Q192039
relation P144
type Q838948
That theatrical genre is based on [ANSWER]
['Q652', 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q838948 . resource:Q192039 property:P144 ?z }
The Trickster of Seville and the Stone Guest
That theatrical genre is based on The Trickster of Seville and the Stone Guest
The Trickster of Seville and the Stone Guest
action filter_type
action find
entity Don Giovanni
relation based on
type work of art
['Italian', 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:work_of_art . resource:Don_Giovanni property:based_on ?z }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q2714218 Q42447 Q51965
P495
Q15617994
USER
Is Crandola Valsassina and Troia, Apulia a country of origin of Q2714218 ?
(Q2714218,P495,Q42447) (Q2714218,P495,Q51965)
action is_in
entity Q2714218
action intersection
action find_reverse
entity Q42447
relation P495
action find_reverse
entity Q51965
relation P495
['Q2714218', 'P495', 'Q42447'] ['Q2714218', 'P495', 'Q51965']
ASK WHERE { resource:Q2714218 property:P495 resource:Q42447 . resource:Q2714218 property:P495 resource:Q51965 }
The Trickster of Seville and the Stone Guest Crandola Valsassina Troia, Apulia
action is_in
entity The Trickster of Seville and the Stone Guest
action intersection
action find_reverse
entity Crandola Valsassina
relation country of origin
action find_reverse
entity Troia, Apulia
relation country of origin
['The Trickster of Seville and the Stone Guest', 'country of origin', 'Crandola Valsassina'] ['The Trickster of Seville and the Stone Guest', 'country of origin', 'Troia, Apulia']
ASK WHERE { resource:The_Trickster_of_Seville_and_the_Stone_Guest property:country_of_origin resource:Crandola_Valsassina . resource:The_Trickster_of_Seville_and_the_Stone_Guest property:country_of_origin resource:Troia,_Apulia }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q2714218,P495,Q42447) (Q2714218,P495,Q51965)
action is_in
entity Q2714218
action intersection
action find_reverse
entity Q42447
relation P495
action find_reverse
entity Q51965
relation P495
[ANSWER]
['Q2714218', 'P495', 'Q42447'] ['Q2714218', 'P495', 'Q51965']
ASK WHERE { resource:Q2714218 property:P495 resource:Q42447 . resource:Q2714218 property:P495 resource:Q51965 }
No
action is_in
entity The Trickster of Seville and the Stone Guest
action intersection
action find_reverse
entity Crandola Valsassina
relation country of origin
action find_reverse
entity Troia, Apulia
relation country of origin
['The Trickster of Seville and the Stone Guest', 'country of origin', 'Crandola Valsassina'] ['The Trickster of Seville and the Stone Guest', 'country of origin', 'Troia, Apulia']
ASK WHERE { resource:The_Trickster_of_Seville_and_the_Stone_Guest property:country_of_origin resource:Crandola_Valsassina . resource:The_Trickster_of_Seville_and_the_Stone_Guest property:country_of_origin resource:Troia,_Apulia }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P144
Q2235308 Q838948 Q15850590
USER
Which theatrical genres are an extension approximately 2 ship types or works of art ?
(c(Q15850590),P144,c(Q2235308)|c(Q838948))
action approx
action union
action find_tuple_counts
relation P144
type Q15850590
type Q2235308
action find_tuple_counts
relation P144
type Q15850590
type Q838948
value 2
[{'concept': 'Q15850590'}, 'P144', [{'concept': 'Q2235308'}, {'concept': 'Q838948'}]]
SELECT DISTINCT ?y WHERE { FILTER ( ?k = 2 ) . { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?k ) WHERE { { ?y property:P144 ?f . ?y rdf:type ontology:Q15850590 . ?f rdf:type ontology:Q2235308 } UNION { ?y property:P144 ?f . ?y rdf:type ontology:Q15850590 . ?f rdf:type ontology:Q838948 } } GROUP BY ?y } }
action approx
action union
action find_tuple_counts
relation based on
type theatrical genre
type ship type
action find_tuple_counts
relation based on
type theatrical genre
type work of art
value 2
[{'concept': 'theatrical genre'}, 'based on', [{'concept': 'ship type'}, {'concept': 'work of art'}]]
SELECT DISTINCT ?y WHERE { FILTER ( ?k = 2 ) . { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?k ) WHERE { { ?y property:based_on ?f . ?y rdf:type ontology:theatrical_genre . ?f rdf:type ontology:ship_type } UNION { ?y property:based_on ?f . ?y rdf:type ontology:theatrical_genre . ?f rdf:type ontology:work_of_art } } GROUP BY ?y } }
[]
ship type work of art theatrical genre
Q3107460 Q2342350 Q1192509
SYSTEM
Œdipe, The Enchanted Island, Der Bettelstudent
Q3107460 Q2342350 Q1192509
(c(Q15850590),P144,c(Q2235308)|c(Q838948))
action approx
action union
action find_tuple_counts
relation P144
type Q15850590
type Q2235308
action find_tuple_counts
relation P144
type Q15850590
type Q838948
value 2
[ANSWERS] are an extension approximately 2 ship types or works of art
[{'concept': 'Q15850590'}, 'P144', [{'concept': 'Q2235308'}, {'concept': 'Q838948'}]]
SELECT DISTINCT ?y WHERE { FILTER ( ?k = 2 ) . { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?k ) WHERE { { ?y property:P144 ?f . ?y rdf:type ontology:Q15850590 . ?f rdf:type ontology:Q2235308 } UNION { ?y property:P144 ?f . ?y rdf:type ontology:Q15850590 . ?f rdf:type ontology:Q838948 } } GROUP BY ?y } }
Œdipe The Enchanted Island Der Bettelstudent
Œdipe, The Enchanted Island and Der Bettelstudent are an extension approximately 2 ship types or works of art
Œdipe The Enchanted Island Der Bettelstudent
action approx
action union
action find_tuple_counts
relation based on
type theatrical genre
type ship type
action find_tuple_counts
relation based on
type theatrical genre
type work of art
value 2
[{'concept': 'theatrical genre'}, 'based on', [{'concept': 'ship type'}, {'concept': 'work of art'}]]
SELECT DISTINCT ?y WHERE { FILTER ( ?k = 2 ) . { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?k ) WHERE { { ?y property:based_on ?f . ?y rdf:type ontology:theatrical_genre . ?f rdf:type ontology:ship_type } UNION { ?y property:based_on ?f . ?y rdf:type ontology:theatrical_genre . ?f rdf:type ontology:work_of_art } } GROUP BY ?y } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2213078 Q2714218
P86 P144
Q15850590
USER
Which theatrical genres are an extension The Trickster of Seville and the Stone Guest or have Prosper-Didier Deshayes as the composer ?
OR((c(Q15850590),P144,Q2714218), (c(Q15850590),P86,Q2213078))
action filter_type
action union
action find_reverse
entity Q2714218
relation P144
action find_reverse
entity Q2213078
relation P86
type Q15850590
{'OR': [[{'concept': 'Q15850590'}, 'P144', 'Q2714218'], [{'concept': 'Q15850590'}, 'P86', 'Q2213078']]}
SELECT DISTINCT ?t WHERE { { { ?t property:P144 resource:Q2714218 } UNION { ?t property:P86 resource:Q2213078 } } . ?t rdf:type ontology:Q15850590 }
Prosper-Didier Deshayes The Trickster of Seville and the Stone Guest
action filter_type
action union
action find_reverse
entity The Trickster of Seville and the Stone Guest
relation based on
action find_reverse
entity Prosper-Didier Deshayes
relation composer
type theatrical genre
{'OR': [[{'concept': 'theatrical genre'}, 'based on', 'The Trickster of Seville and the Stone Guest'], [{'concept': 'theatrical genre'}, 'composer', 'Prosper-Didier Deshayes']]}
SELECT DISTINCT ?t WHERE { { { ?t property:based_on resource:The_Trickster_of_Seville_and_the_Stone_Guest } UNION { ?t property:composer resource:Prosper-Didier_Deshayes } } . ?t rdf:type ontology:theatrical_genre }
[]
theatrical genre
Q6507977 Q192039
SYSTEM
Le congrès des rois, Don Giovanni
Q6507977 Q192039
OR((c(Q15850590),P144,Q2714218), (c(Q15850590),P86,Q2213078))
action filter_type
action union
action find_reverse
entity Q2714218
relation P144
action find_reverse
entity Q2213078
relation P86
type Q15850590
The [ANSWERS] are an extension The Trickster of Seville and the Stone Guest or have Prosper-Didier Deshayes as the composer
{'OR': [[{'concept': 'Q15850590'}, 'P144', 'Q2714218'], [{'concept': 'Q15850590'}, 'P86', 'Q2213078']]}
SELECT DISTINCT ?t WHERE { { { ?t property:P144 resource:Q2714218 } UNION { ?t property:P86 resource:Q2213078 } } . ?t rdf:type ontology:Q15850590 }
Le congrès des rois Don Giovanni
The Le congrès des rois and Don Giovanni are an extension The Trickster of Seville and the Stone Guest or have Prosper-Didier Deshayes as the composer
Le congrès des rois Don Giovanni
action filter_type
action union
action find_reverse
entity The Trickster of Seville and the Stone Guest
relation based on
action find_reverse
entity Prosper-Didier Deshayes
relation composer
type theatrical genre
{'OR': [[{'concept': 'theatrical genre'}, 'based on', 'The Trickster of Seville and the Stone Guest'], [{'concept': 'theatrical genre'}, 'composer', 'Prosper-Didier Deshayes']]}
SELECT DISTINCT ?t WHERE { { { ?t property:based_on resource:The_Trickster_of_Seville_and_the_Stone_Guest } UNION { ?t property:composer resource:Prosper-Didier_Deshayes } } . ?t rdf:type ontology:theatrical_genre }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P144
Q2342494 Q11028 Q15850590
USER
How many theatrical genres are derived from exactly 2 collectables and information ?
(c(Q15850590),P144,c(Q2342494)|c(Q11028))
action count
action equal
action union
action find_tuple_counts
relation P144
type Q15850590
type Q2342494
action find_tuple_counts
relation P144
type Q15850590
type Q11028
value 2
[{'concept': 'Q15850590'}, 'P144', [{'concept': 'Q2342494'}, {'concept': 'Q11028'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?s ) AS ?j ) WHERE { ?s rdf:type ?o . VALUES ( ?o ) { ( ontology:Q2342494 ) ( ontology:Q11028 ) } } GROUP BY ?t } . FILTER ( ?j = 2 ) }
action count
action equal
action union
action find_tuple_counts
relation based on
type theatrical genre
type collectable
action find_tuple_counts
relation based on
type theatrical genre
type information
value 2
[{'concept': 'theatrical genre'}, 'based on', [{'concept': 'collectable'}, {'concept': 'information'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?s ) AS ?j ) WHERE { ?s rdf:type ?o . VALUES ( ?o ) { ( ontology:collectable ) ( ontology:information ) } } GROUP BY ?t } . FILTER ( ?j = 2 ) }
[]
collectable information theatrical genre
SYSTEM
1
Q23085
(c(Q15850590),P144,c(Q2342494)|c(Q11028))
action count
action equal
action union
action find_tuple_counts
relation P144
type Q15850590
type Q2342494
action find_tuple_counts
relation P144
type Q15850590
type Q11028
value 2
[ANSWER]
[{'concept': 'Q15850590'}, 'P144', [{'concept': 'Q2342494'}, {'concept': 'Q11028'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?s ) AS ?j ) WHERE { ?s rdf:type ?o . VALUES ( ?o ) { ( ontology:Q2342494 ) ( ontology:Q11028 ) } } GROUP BY ?t } . FILTER ( ?j = 2 ) }
Lohengrin
1
action count
action equal
action union
action find_tuple_counts
relation based on
type theatrical genre
type collectable
action find_tuple_counts
relation based on
type theatrical genre
type information
value 2
[{'concept': 'theatrical genre'}, 'based on', [{'concept': 'collectable'}, {'concept': 'information'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?s ) AS ?j ) WHERE { ?s rdf:type ?o . VALUES ( ?o ) { ( ontology:collectable ) ( ontology:information ) } } GROUP BY ?t } . FILTER ( ?j = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q11614423 Q51965
P17
Q15617994
USER
Which administrative territories are Troia, Apulia or Yayamachi Station located in ?
OR((Q51965,P17,c(Q15617994)), (Q11614423,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q51965
relation P17
action find
entity Q11614423
relation P17
type Q15617994
{'OR': [['Q51965', 'P17', {'concept': 'Q15617994'}], ['Q11614423', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { ?x property:P17 ?d . VALUES ( ?x ) { ( resource:Q11614423 ) ( resource:Q51965 ) } } . ?d rdf:type ontology:Q15617994 }
Yayamachi Station Troia, Apulia
action filter_type
action union
action find
entity Troia, Apulia
relation country
action find
entity Yayamachi Station
relation country
type designation for an administrative territorial entity
{'OR': [['Troia, Apulia', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Yayamachi Station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { ?x property:country ?d . VALUES ( ?x ) { ( resource:Yayamachi_Station ) ( resource:Troia,_Apulia ) } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q38
SYSTEM
Japan, Italy
Q17 Q38
OR((Q51965,P17,c(Q15617994)), (Q11614423,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q51965
relation P17
action find
entity Q11614423
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q51965', 'P17', {'concept': 'Q15617994'}], ['Q11614423', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { ?x property:P17 ?d . VALUES ( ?x ) { ( resource:Q11614423 ) ( resource:Q51965 ) } } . ?d rdf:type ontology:Q15617994 }
Japan Italy
Which administrative territories are Troia, Apulia or Yayamachi Station located in
Japan Italy
action filter_type
action union
action find
entity Troia, Apulia
relation country
action find
entity Yayamachi Station
relation country
type designation for an administrative territorial entity
{'OR': [['Troia, Apulia', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Yayamachi Station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { ?x property:country ?d . VALUES ( ?x ) { ( resource:Yayamachi_Station ) ( resource:Troia,_Apulia ) } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P194
Q1752346
USER
Which assembly is the legislative body for Italy ?
(Q38,P194,c(Q1752346))
action filter_type
action find
entity Q38
relation P194
type Q1752346
['Q38', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1752346 . resource:Q38 property:P194 ?u }
Italy
action filter_type
action find
entity Italy
relation legislative body
type assembly
['Italy', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:assembly . resource:Italy property:legislative_body ?u }
[]
assembly
Q1117578
SYSTEM
Italian Parliament
Q1117578
(Q38,P194,c(Q1752346))
action filter_type
action find
entity Q38
relation P194
type Q1752346
[ANSWER] is the legislative body for Italy
['Q38', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1752346 . resource:Q38 property:P194 ?u }
Italian Parliament
Italian Parliament is the legislative body for Italy
Italian Parliament
action filter_type
action find
entity Italy
relation legislative body
type assembly
['Italy', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:assembly . resource:Italy property:legislative_body ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38
P37
Q34770
USER
What is considered to be the official language of that administrative territory ?
(Q1117578,P37,c(Q34770))
action filter_type
action find
entity Q38
relation P37
type Q34770
['Q1117578', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { resource:Q38 property:P37 ?i . ?i rdf:type ontology:Q34770 }
Italy
action filter_type
action find
entity Italy
relation official language
type language
['Italian Parliament', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { resource:Italy property:official_language ?i . ?i rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q1117578,P37,c(Q34770))
action filter_type
action find
entity Q38
relation P37
type Q34770
[ANSWER] is considered to be the official language of that administrative territory
['Q1117578', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { resource:Q38 property:P37 ?i . ?i rdf:type ontology:Q34770 }
Italian
Italian is considered to be the official language of that administrative territory
Italian
action filter_type
action find
entity Italy
relation official language
type language
['Italian Parliament', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { resource:Italy property:official_language ?i . ?i rdf:type ontology:language }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q606972
P282
Q9779 Q34770
USER
How many alphabets are the writing systems of more number of languages known as than Polish alphabet ?
(c(Q34770),P282,c(Q9779))
action count
action greater
action find_reverse_tuple_counts
relation P282
type Q9779
type Q34770
action count
action filter_type
action find
entity Q606972
relation P282
type Q9779
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?r ) AS ?g ) WHERE { ?r property:P282 ?l . ?r rdf:type ontology:Q34770 . ?l rdf:type ontology:Q9779 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:Q606972 property:P282 ?w . ?w rdf:type ontology:Q9779 } } . FILTER ( ?g > ?p ) }
Polish alphabet
action count
action greater
action find_reverse_tuple_counts
relation writing system
type alphabet
type language
action count
action filter_type
action find
entity Polish alphabet
relation writing system
type alphabet
[{'concept': 'language'}, 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?r ) AS ?g ) WHERE { ?r property:writing_system ?l . ?r rdf:type ontology:language . ?l rdf:type ontology:alphabet } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:Polish_alphabet property:writing_system ?w . ?w rdf:type ontology:alphabet } } . FILTER ( ?g > ?p ) }
[]
alphabet language
SYSTEM
4
Q8209 Q829464 Q550383 Q442244
(c(Q34770),P282,c(Q9779))
action count
action greater
action find_reverse_tuple_counts
relation P282
type Q9779
type Q34770
action count
action filter_type
action find
entity Q606972
relation P282
type Q9779
[ANSWER]
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?r ) AS ?g ) WHERE { ?r property:P282 ?l . ?r rdf:type ontology:Q34770 . ?l rdf:type ontology:Q9779 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:Q606972 property:P282 ?w . ?w rdf:type ontology:Q9779 } } . FILTER ( ?g > ?p ) }
Cyrillic script Serbian Cyrillic alphabet Italian alphabet Early Cyrillic alphabet
4
action count
action greater
action find_reverse_tuple_counts
relation writing system
type alphabet
type language
action count
action filter_type
action find
entity Polish alphabet
relation writing system
type alphabet
[{'concept': 'language'}, 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?r ) AS ?g ) WHERE { ?r property:writing_system ?l . ?r rdf:type ontology:language . ?l rdf:type ontology:alphabet } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { resource:Polish_alphabet property:writing_system ?w . ?w rdf:type ontology:alphabet } } . FILTER ( ?g > ?p ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q14921
P190
Q15617994
USER
Which administrative territory is twin city of Ascheberg ?
(Q14921,P190,c(Q15617994))
action filter_type
action find
entity Q14921
relation P190
type Q15617994
['Q14921', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q14921 property:P190 ?d . ?d rdf:type ontology:Q15617994 }
Ascheberg
action filter_type
action find
entity Ascheberg
relation sister city
type designation for an administrative territorial entity
['Ascheberg', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Ascheberg property:sister_city ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q102566
SYSTEM
Buggiano
Q102566
(Q14921,P190,c(Q15617994))
action filter_type
action find
entity Q14921
relation P190
type Q15617994
[ANSWER] is twin city of Ascheberg
['Q14921', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q14921 property:P190 ?d . ?d rdf:type ontology:Q15617994 }
Buggiano
Buggiano is twin city of Ascheberg
Buggiano
action filter_type
action find
entity Ascheberg
relation sister city
type designation for an administrative territorial entity
['Ascheberg', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Ascheberg property:sister_city ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q82789
Q15617994
USER
And also tell me about Pelago?
(Q82789,P190,c(Q15617994))
action filter_type
action find
entity Q82789
relation P190
type Q15617994
['Q82789', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q82789 property:P190 ?u . ?u rdf:type ontology:Q15617994 }
Pelago
action filter_type
action find
entity Pelago
relation sister city
type designation for an administrative territorial entity
['Pelago', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Pelago property:sister_city ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q551127
SYSTEM
Modautal
Q551127
(Q82789,P190,c(Q15617994))
action filter_type
action find
entity Q82789
relation P190
type Q15617994
[ANSWER]
['Q82789', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q82789 property:P190 ?u . ?u rdf:type ontology:Q15617994 }
Modautal
Modautal
action filter_type
action find
entity Pelago
relation sister city
type designation for an administrative territorial entity
['Pelago', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Pelago property:sister_city ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]