Simple Question (Direct)
Simple Question
Q3733876
P1412
Q34770
USER
Which language can Ettore Bignone read ?
(Q3733876,P1412,c(Q34770))
action filter_type
action find
entity Q3733876
relation P1412
type Q34770
['Q3733876', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q3733876 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
Ettore Bignone
action filter_type
action find
entity Ettore Bignone
relation languages spoken, written or signed
type language
['Ettore Bignone', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Ettore_Bignone property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q3733876,P1412,c(Q34770))
action filter_type
action find
entity Q3733876
relation P1412
type Q34770
Ettore Bignone can read in [ANSWER]
['Q3733876', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q3733876 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
Italian
Ettore Bignone can read in Italian
Italian
action filter_type
action find
entity Ettore Bignone
relation languages spoken, written or signed
type language
['Ettore Bignone', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Ettore_Bignone property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3733876
P21
Q290
USER
Which sex does Ettore Bignone possess ?
(Q3733876,P21,c(Q290))
action filter_type
action find
entity Q3733876
relation P21
type Q290
['Q3733876', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q3733876 property:P21 ?z . ?z rdf:type ontology:Q290 }
Ettore Bignone
action filter_type
action find
entity Ettore Bignone
relation gender
type sex
['Ettore Bignone', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Ettore_Bignone property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3733876,P21,c(Q290))
action filter_type
action find
entity Q3733876
relation P21
type Q290
Ettore Bignone possesses un [ANSWER]
['Q3733876', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q3733876 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
Ettore Bignone possesses un male
male
action filter_type
action find
entity Ettore Bignone
relation gender
type sex
['Ettore Bignone', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Ettore_Bignone property:gender ?z . ?z rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q16405791 Q3733876
P21
Q290
USER
Or Peep Sürje?
OR((Q3733876,P21,c(Q290)), (Q16405791,P21,c(Q290)))
action filter_type
action union
action find
entity Q3733876
relation P21
action find
entity Q16405791
relation P21
type Q290
{'OR': [['Q3733876', 'P21', {'concept': 'Q290'}], ['Q16405791', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q3733876 property:P21 ?e } UNION { resource:Q16405791 property:P21 ?e } } . ?e rdf:type ontology:Q290 }
Peep Sürje Ettore Bignone
action filter_type
action union
action find
entity Ettore Bignone
relation gender
action find
entity Peep Sürje
relation gender
type sex
{'OR': [['Ettore Bignone', 'gender', {'concept': 'sex'}], ['Peep Sürje', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Ettore_Bignone property:gender ?e } UNION { resource:Peep_Sürje property:gender ?e } } . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
OR((Q3733876,P21,c(Q290)), (Q16405791,P21,c(Q290)))
action filter_type
action union
action find
entity Q3733876
relation P21
action find
entity Q16405791
relation P21
type Q290
[ANSWER]
{'OR': [['Q3733876', 'P21', {'concept': 'Q290'}], ['Q16405791', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q3733876 property:P21 ?e } UNION { resource:Q16405791 property:P21 ?e } } . ?e rdf:type ontology:Q290 }
male
male
action filter_type
action union
action find
entity Ettore Bignone
relation gender
action find
entity Peep Sürje
relation gender
type sex
{'OR': [['Ettore Bignone', 'gender', {'concept': 'sex'}], ['Peep Sürje', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Ettore_Bignone property:gender ?e } UNION { resource:Peep_Sürje property:gender ?e } } . ?e rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q652
P282
Q9779
USER
Which alphabet is used as the alphabet set for Italian ?
(Q652,P282,c(Q9779))
action filter_type
action find
entity Q652
relation P282
type Q9779
['Q652', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?l WHERE { resource:Q652 property:P282 ?l . ?l rdf:type ontology:Q9779 }
Italian
action filter_type
action find
entity Italian
relation writing system
type alphabet
['Italian', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?l WHERE { resource:Italian property:writing_system ?l . ?l rdf:type ontology:alphabet }
[]
alphabet
Q550383
SYSTEM
Italian alphabet
Q550383
(Q652,P282,c(Q9779))
action filter_type
action find
entity Q652
relation P282
type Q9779
In [ANSWER] is used as the alphabet set for Italian
['Q652', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?l WHERE { resource:Q652 property:P282 ?l . ?l rdf:type ontology:Q9779 }
Italian alphabet
In Italian alphabet is used as the alphabet set for Italian
Italian alphabet
action filter_type
action find
entity Italian
relation writing system
type alphabet
['Italian', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?l WHERE { resource:Italian property:writing_system ?l . ?l rdf:type ontology:alphabet }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q36880
P37
Q34770 Q1048835 Q7275
USER
Which languages are recognized as the official language of lesser number of political territories or states than Bulgar language ?
(c(Q1048835)|c(Q7275),P37,c(Q34770))
action less
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q7275
action count
action filter_multi_types
action find_reverse
entity Q36880
relation P37
type Q1048835
type Q7275
[[{'concept': 'Q1048835'}, {'concept': 'Q7275'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?e < ?h ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { { ?j rdf:type ?x . VALUES ( ?x ) { ( ontology:Q1048835 ) ( ontology:Q7275 ) } } . ?j property:P37 resource:Q36880 } } . { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ?c . VALUES ( ?c ) { ( ontology:Q1048835 ) ( ontology:Q7275 ) } } GROUP BY ?w } }
Bulgar language
action less
action union
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action find_reverse_tuple_counts
relation official language
type language
type state
action count
action filter_multi_types
action find_reverse
entity Bulgar language
relation official language
type political territorial entity
type state
[[{'concept': 'political territorial entity'}, {'concept': 'state'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?e < ?h ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { { ?j rdf:type ?x . VALUES ( ?x ) { ( ontology:political_territorial_entity ) ( ontology:state ) } } . ?j property:official_language resource:Bulgar_language } } . { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ?c . VALUES ( ?c ) { ( ontology:political_territorial_entity ) ( ontology:state ) } } GROUP BY ?w } }
[]
language political territorial entity state
Q33251 Q8752 Q35499
SYSTEM
Church Slavonic, Basque, Old Church Slavonic
Q33251 Q3110592 Q36206 Q8752 Q35499 Q35726 Q8785 Q25164
(c(Q1048835)|c(Q7275),P37,c(Q34770))
action less
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q7275
action count
action filter_multi_types
action find_reverse
entity Q36880
relation P37
type Q1048835
type Q7275
[ANSWERS] are recognized as the official language of lesser number of political territories or states than Bulgar language
[[{'concept': 'Q1048835'}, {'concept': 'Q7275'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?e < ?h ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { { ?j rdf:type ?x . VALUES ( ?x ) { ( ontology:Q1048835 ) ( ontology:Q7275 ) } } . ?j property:P37 resource:Q36880 } } . { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ?c . VALUES ( ?c ) { ( ontology:Q1048835 ) ( ontology:Q7275 ) } } GROUP BY ?w } }
Church Slavonic written Chinese Lak Basque Old Church Slavonic Etruscan Armenian Nynorsk
Church Slavonic, Basque and Old Church Slavonic are recognized as the official language of lesser number of political territories or states than Bulgar language
Church Slavonic Basque Old Church Slavonic
action less
action union
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action find_reverse_tuple_counts
relation official language
type language
type state
action count
action filter_multi_types
action find_reverse
entity Bulgar language
relation official language
type political territorial entity
type state
[[{'concept': 'political territorial entity'}, {'concept': 'state'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?e < ?h ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { { ?j rdf:type ?x . VALUES ( ?x ) { ( ontology:political_territorial_entity ) ( ontology:state ) } } . ?j property:official_language resource:Bulgar_language } } . { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ?c . VALUES ( ?c ) { ( ontology:political_territorial_entity ) ( ontology:state ) } } GROUP BY ?w } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1321
P37
Q34770 Q1048835 Q7275
USER
And also tell me about Spanish?
(c(Q1048835)|c(Q7275),P37,c(Q34770))
action less
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q7275
action count
action filter_multi_types
action find_reverse
entity Q1321
relation P37
type Q1048835
type Q7275
[[{'concept': 'Q1048835'}, {'concept': 'Q7275'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?s ) WHERE { { ?x property:P37 ?u . ?u rdf:type ontology:Q34770 . ?x rdf:type ontology:Q1048835 } UNION { ?x property:P37 ?u . ?u rdf:type ontology:Q34770 . ?x rdf:type ontology:Q7275 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { ?t property:P37 resource:Q1321 . { { ?t rdf:type ontology:Q1048835 } UNION { ?t rdf:type ontology:Q7275 } } } } . FILTER ( ?s < ?h ) }
Spanish
action less
action union
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action find_reverse_tuple_counts
relation official language
type language
type state
action count
action filter_multi_types
action find_reverse
entity Spanish
relation official language
type political territorial entity
type state
[[{'concept': 'political territorial entity'}, {'concept': 'state'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?s ) WHERE { { ?x property:official_language ?u . ?u rdf:type ontology:language . ?x rdf:type ontology:political_territorial_entity } UNION { ?x property:official_language ?u . ?u rdf:type ontology:language . ?x rdf:type ontology:state } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { ?t property:official_language resource:Spanish . { { ?t rdf:type ontology:political_territorial_entity } UNION { ?t rdf:type ontology:state } } } } . FILTER ( ?s < ?h ) }
[]
language political territorial entity state
Q9056 Q33251 Q8752
SYSTEM
Czech, Church Slavonic, Basque
Q9056 Q33251 Q13211 Q3110592 Q36206 Q652 Q8752 Q36880 Q33976 Q35499 Q397 Q35726 Q8785 Q25164
(c(Q1048835)|c(Q7275),P37,c(Q34770))
action less
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q7275
action count
action filter_multi_types
action find_reverse
entity Q1321
relation P37
type Q1048835
type Q7275
[ANSWERS]
[[{'concept': 'Q1048835'}, {'concept': 'Q7275'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?s ) WHERE { { ?x property:P37 ?u . ?u rdf:type ontology:Q34770 . ?x rdf:type ontology:Q1048835 } UNION { ?x property:P37 ?u . ?u rdf:type ontology:Q34770 . ?x rdf:type ontology:Q7275 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { ?t property:P37 resource:Q1321 . { { ?t rdf:type ontology:Q1048835 } UNION { ?t rdf:type ontology:Q7275 } } } } . FILTER ( ?s < ?h ) }
Czech Church Slavonic Ruthenian written Chinese Lak Italian Basque Bulgar language Sardinian language Old Church Slavonic Latin Etruscan Armenian Nynorsk
Czech Church Slavonic Basque
action less
action union
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action find_reverse_tuple_counts
relation official language
type language
type state
action count
action filter_multi_types
action find_reverse
entity Spanish
relation official language
type political territorial entity
type state
[[{'concept': 'political territorial entity'}, {'concept': 'state'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?s ) WHERE { { ?x property:official_language ?u . ?u rdf:type ontology:language . ?x rdf:type ontology:political_territorial_entity } UNION { ?x property:official_language ?u . ?u rdf:type ontology:language . ?x rdf:type ontology:state } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { ?t property:official_language resource:Spanish . { { ?t rdf:type ontology:political_territorial_entity } UNION { ?t rdf:type ontology:state } } } } . FILTER ( ?s < ?h ) }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P103
Q34770 Q502895
USER
Which languages are the mother tongues of around the same number of people as that language ?
(c(Q502895),P103,c(Q34770))
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { ?z property:P103 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q34770 }
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { ?z property:native_language ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:language }
[]
language common name
Comparative|More/Less|Single entity type|Clarification
Q33251
SYSTEM
Did you mean Church Slavonic ?
(c(Q502895),P103,c(Q34770))
[ANSWER]
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { ?z property:P103 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q34770 }
Did you mean Church Slavonic ?
Church Slavonic
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { ?z property:native_language ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:language }
[]
Comparative Reasoning (All)
USER
No, I meant Basque. Could you tell me the answer for that?
(c(Q502895),P103,c(Q34770))
Q8752
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
[]
Q9056 Q8752 Q397
SYSTEM
Czech, Basque, Latin
Q3200839 Q9056 Q652 Q8752 Q13211 Q397 Q8785 Q25164
(c(Q502895),P103,c(Q34770))
[ANSWERS] are the mother tongues of around the same number of people as that language
[{'concept': 'Q502895'}, 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { ?z property:P103 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q34770 }
Kwaza language Czech Italian Basque Ruthenian Latin Armenian Nynorsk
Czech, Basque and Latin are the mother tongues of around the same number of people as that language
Czech Basque Latin
[{'concept': 'common name'}, 'native language', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { ?z property:native_language ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:language }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P37
Q34770 Q1048835
USER
Which political territories are exactly 2 languages the official language of ?
(c(Q1048835),P37,c(Q34770))
action equal
action find_tuple_counts
relation P37
type Q1048835
type Q34770
value 2
[{'concept': 'Q1048835'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?d ) WHERE { ?a rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q34770 . ?a property:P37 ?f } GROUP BY ?a } . FILTER ( ?d = 2 ) }
action equal
action find_tuple_counts
relation official language
type political territorial entity
type language
value 2
[{'concept': 'political territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?d ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:language . ?a property:official_language ?f } GROUP BY ?a } . FILTER ( ?d = 2 ) }
[]
language political territorial entity
Q757
SYSTEM
Saint Vincent and the Grenadines
Q757
(c(Q1048835),P37,c(Q34770))
action equal
action find_tuple_counts
relation P37
type Q1048835
type Q34770
value 2
[ANSWER] is exactly 2 languages the official language of
[{'concept': 'Q1048835'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?d ) WHERE { ?a rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q34770 . ?a property:P37 ?f } GROUP BY ?a } . FILTER ( ?d = 2 ) }
Saint Vincent and the Grenadines
Saint Vincent and the Grenadines is exactly 2 languages the official language of
Saint Vincent and the Grenadines
action equal
action find_tuple_counts
relation official language
type political territorial entity
type language
value 2
[{'concept': 'political territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?d ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:language . ?a property:official_language ?f } GROUP BY ?a } . FILTER ( ?d = 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P138
Q502895 Q2095
USER
How many people and foods are that political territory named after ?
(Q757,P138,c(Q502895)) (Q757,P138,c(Q2095)) (Q757,P138,c(Q502895)) (Q757,P138,c(Q2095))
action count
action union
action filter_type
action find
entity Q757
relation P138
type Q502895
action filter_type
action find
entity Q757
relation P138
type Q2095
['Q757', 'P138', {'concept': 'Q502895'}] ['Q757', 'P138', {'concept': 'Q2095'}] ['Q757', 'P138', {'concept': 'Q502895'}] ['Q757', 'P138', {'concept': 'Q2095'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { { resource:Q757 property:P138 ?g . ?g rdf:type ontology:Q2095 } UNION { resource:Q757 property:P138 ?g . ?g rdf:type ontology:Q502895 } }
action count
action union
action filter_type
action find
entity Saint Vincent and the Grenadines
relation named after
type common name
action filter_type
action find
entity Saint Vincent and the Grenadines
relation named after
type food
['Saint Vincent and the Grenadines', 'named after', {'concept': 'common name'}] ['Saint Vincent and the Grenadines', 'named after', {'concept': 'food'}] ['Saint Vincent and the Grenadines', 'named after', {'concept': 'common name'}] ['Saint Vincent and the Grenadines', 'named after', {'concept': 'food'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { { resource:Saint_Vincent_and_the_Grenadines property:named_after ?g . ?g rdf:type ontology:food } UNION { resource:Saint_Vincent_and_the_Grenadines property:named_after ?g . ?g rdf:type ontology:common_name } }
[]
common name food
SYSTEM
1 people and 1 foods
Q13222088 Q318974
(Q757,P138,c(Q502895)) (Q757,P138,c(Q2095)) (Q757,P138,c(Q502895)) (Q757,P138,c(Q2095))
action count
action union
action filter_type
action find
entity Q757
relation P138
type Q502895
action filter_type
action find
entity Q757
relation P138
type Q2095
[ANSWER]
['Q757', 'P138', {'concept': 'Q502895'}] ['Q757', 'P138', {'concept': 'Q2095'}] ['Q757', 'P138', {'concept': 'Q502895'}] ['Q757', 'P138', {'concept': 'Q2095'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { { resource:Q757 property:P138 ?g . ?g rdf:type ontology:Q2095 } UNION { resource:Q757 property:P138 ?g . ?g rdf:type ontology:Q502895 } }
pomegranate Vincent of Saragossa
1 people and 1 foods
action count
action union
action filter_type
action find
entity Saint Vincent and the Grenadines
relation named after
type common name
action filter_type
action find
entity Saint Vincent and the Grenadines
relation named after
type food
['Saint Vincent and the Grenadines', 'named after', {'concept': 'common name'}] ['Saint Vincent and the Grenadines', 'named after', {'concept': 'food'}] ['Saint Vincent and the Grenadines', 'named after', {'concept': 'common name'}] ['Saint Vincent and the Grenadines', 'named after', {'concept': 'food'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { { resource:Saint_Vincent_and_the_Grenadines property:named_after ?g . ?g rdf:type ontology:food } UNION { resource:Saint_Vincent_and_the_Grenadines property:named_after ?g . ?g rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9056
P2439
Q7725634
USER
Which literary work has Czech as the language associated with it ?
(c(Q7725634),P2439,Q9056)
action filter_type
action find_reverse
entity Q9056
relation P2439
type Q7725634
[{'concept': 'Q7725634'}, 'P2439', 'Q9056']
SELECT DISTINCT ?n WHERE { ?n property:P2439 resource:Q9056 . ?n rdf:type ontology:Q7725634 }
Czech
action filter_type
action find_reverse
entity Czech
relation language
type literary work
[{'concept': 'literary work'}, 'language', 'Czech']
SELECT DISTINCT ?n WHERE { ?n property:language resource:Czech . ?n rdf:type ontology:literary_work }
[]
literary work
Q12029634
SYSTEM
Knihy odvahy a dobrodružství
Q12029634
(c(Q7725634),P2439,Q9056)
action filter_type
action find_reverse
entity Q9056
relation P2439
type Q7725634
[ANSWER] has Czech as the language associated with it
[{'concept': 'Q7725634'}, 'P2439', 'Q9056']
SELECT DISTINCT ?n WHERE { ?n property:P2439 resource:Q9056 . ?n rdf:type ontology:Q7725634 }
Knihy odvahy a dobrodružství
Knihy odvahy a dobrodružství has Czech as the language associated with it
Knihy odvahy a dobrodružství
action filter_type
action find_reverse
entity Czech
relation language
type literary work
[{'concept': 'literary work'}, 'language', 'Czech']
SELECT DISTINCT ?n WHERE { ?n property:language resource:Czech . ?n rdf:type ontology:literary_work }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9056
P361
Q5962346
USER
Which classification scheme is that language a component of ?
(Q12029634,P361,c(Q5962346))
action filter_type
action find
entity Q9056
relation P361
type Q5962346
['Q12029634', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?r WHERE { resource:Q9056 property:P361 ?r . ?r rdf:type ontology:Q5962346 }
Czech
action filter_type
action find
entity Czech
relation part of
type classification scheme
['Knihy odvahy a dobrodružství', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?r WHERE { resource:Czech property:part_of ?r . ?r rdf:type ontology:classification_scheme }
[]
classification scheme
Q145852
SYSTEM
West Slavic languages
Q145852
(Q12029634,P361,c(Q5962346))
action filter_type
action find
entity Q9056
relation P361
type Q5962346
The [ANSWER] is that language a component of
['Q12029634', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?r WHERE { resource:Q9056 property:P361 ?r . ?r rdf:type ontology:Q5962346 }
West Slavic languages
The West Slavic languages is that language a component of
West Slavic languages
action filter_type
action find
entity Czech
relation part of
type classification scheme
['Knihy odvahy a dobrodružství', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?r WHERE { resource:Czech property:part_of ?r . ?r rdf:type ontology:classification_scheme }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P282
Q2001982 Q9779 Q34770
USER
Which languages adopt max number of notations or alphabets as the writing system ?
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action argmax
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?r ) { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?b ) WHERE { { ?g property:P282 ?h . ?g rdf:type ontology:Q34770 . ?h rdf:type ontology:Q9779 } UNION { ?g property:P282 ?h . ?g rdf:type ontology:Q34770 . ?h rdf:type ontology:Q2001982 } } GROUP BY ?g } } . { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?j ) WHERE { { ?s property:P282 ?c . ?s rdf:type ontology:Q34770 . ?c rdf:type ontology:Q2001982 } UNION { ?s property:P282 ?c . ?c rdf:type ontology:Q9779 . ?s rdf:type ontology:Q34770 } } GROUP BY ?s } . FILTER ( ?j = ?r ) }
action argmax
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?r ) { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?b ) WHERE { { ?g property:writing_system ?h . ?g rdf:type ontology:language . ?h rdf:type ontology:alphabet } UNION { ?g property:writing_system ?h . ?g rdf:type ontology:language . ?h rdf:type ontology:notation } } GROUP BY ?g } } . { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?j ) WHERE { { ?s property:writing_system ?c . ?s rdf:type ontology:language . ?c rdf:type ontology:notation } UNION { ?s property:writing_system ?c . ?c rdf:type ontology:alphabet . ?s rdf:type ontology:language } } GROUP BY ?s } . FILTER ( ?j = ?r ) }
[]
notation alphabet language
Q29572
SYSTEM
Avestan
Q29572
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action argmax
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
[ANSWER] adopt max number of notations or alphabets as the writing system
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?r ) { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?b ) WHERE { { ?g property:P282 ?h . ?g rdf:type ontology:Q34770 . ?h rdf:type ontology:Q9779 } UNION { ?g property:P282 ?h . ?g rdf:type ontology:Q34770 . ?h rdf:type ontology:Q2001982 } } GROUP BY ?g } } . { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?j ) WHERE { { ?s property:P282 ?c . ?s rdf:type ontology:Q34770 . ?c rdf:type ontology:Q2001982 } UNION { ?s property:P282 ?c . ?c rdf:type ontology:Q9779 . ?s rdf:type ontology:Q34770 } } GROUP BY ?s } . FILTER ( ?j = ?r ) }
Avestan
Avestan adopt max number of notations or alphabets as the writing system
Avestan
action argmax
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?r ) { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?b ) WHERE { { ?g property:writing_system ?h . ?g rdf:type ontology:language . ?h rdf:type ontology:alphabet } UNION { ?g property:writing_system ?h . ?g rdf:type ontology:language . ?h rdf:type ontology:notation } } GROUP BY ?g } } . { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?j ) WHERE { { ?s property:writing_system ?c . ?s rdf:type ontology:language . ?c rdf:type ontology:notation } UNION { ?s property:writing_system ?c . ?c rdf:type ontology:alphabet . ?s rdf:type ontology:language } } GROUP BY ?s } . FILTER ( ?j = ?r ) }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q29572 Q1771716 Q790681
P282
Q2001982
USER
Does Avestan have writing system as Pahlavi scripts and Avestan alphabet ?
(Q29572,P282,Q1771716) (Q29572,P282,Q790681)
action is_in
entity Q29572
action intersection
action find_reverse
entity Q1771716
relation P282
action find_reverse
entity Q790681
relation P282
['Q29572', 'P282', 'Q1771716'] ['Q29572', 'P282', 'Q790681']
ASK WHERE { resource:Q29572 property:P282 resource:Q1771716 . resource:Q29572 property:P282 resource:Q790681 }
Avestan Pahlavi scripts Avestan alphabet
action is_in
entity Avestan
action intersection
action find_reverse
entity Pahlavi scripts
relation writing system
action find_reverse
entity Avestan alphabet
relation writing system
['Avestan', 'writing system', 'Pahlavi scripts'] ['Avestan', 'writing system', 'Avestan alphabet']
ASK WHERE { resource:Avestan property:writing_system resource:Pahlavi_scripts . resource:Avestan property:writing_system resource:Avestan_alphabet }
[]
notation
SYSTEM
YES
(Q29572,P282,Q1771716) (Q29572,P282,Q790681)
action is_in
entity Q29572
action intersection
action find_reverse
entity Q1771716
relation P282
action find_reverse
entity Q790681
relation P282
[ANSWER]
['Q29572', 'P282', 'Q1771716'] ['Q29572', 'P282', 'Q790681']
ASK WHERE { resource:Q29572 property:P282 resource:Q1771716 . resource:Q29572 property:P282 resource:Q790681 }
Yes
action is_in
entity Avestan
action intersection
action find_reverse
entity Pahlavi scripts
relation writing system
action find_reverse
entity Avestan alphabet
relation writing system
['Avestan', 'writing system', 'Pahlavi scripts'] ['Avestan', 'writing system', 'Avestan alphabet']
ASK WHERE { resource:Avestan property:writing_system resource:Pahlavi_scripts . resource:Avestan property:writing_system resource:Avestan_alphabet }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q757
P36
Q515
USER
Which city is associated to Saint Vincent and the Grenadines as the capital ?
(Q757,P36,c(Q515))
action filter_type
action find
entity Q757
relation P36
type Q515
['Q757', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?v WHERE { resource:Q757 property:P36 ?v . ?v rdf:type ontology:Q515 }
Saint Vincent and the Grenadines
action filter_type
action find
entity Saint Vincent and the Grenadines
relation capital
type city
['Saint Vincent and the Grenadines', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?v WHERE { resource:Saint_Vincent_and_the_Grenadines property:capital ?v . ?v rdf:type ontology:city }
[]
city
Q41474
SYSTEM
Kingstown
Q41474
(Q757,P36,c(Q515))
action filter_type
action find
entity Q757
relation P36
type Q515
[ANSWER] is associated to Saint Vincent and the Grenadines as the capital
['Q757', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?v WHERE { resource:Q757 property:P36 ?v . ?v rdf:type ontology:Q515 }
Kingstown
Kingstown is associated to Saint Vincent and the Grenadines as the capital
Kingstown
action filter_type
action find
entity Saint Vincent and the Grenadines
relation capital
type city
['Saint Vincent and the Grenadines', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?v WHERE { resource:Saint_Vincent_and_the_Grenadines property:capital ?v . ?v rdf:type ontology:city }
[]