Simple Question (Direct)
Simple Question
Q2939028
P19
Q56061
USER
Where was Carla Cerati born ?
(Q2939028,P19,c(Q56061))
action filter_type
action find
entity Q2939028
relation P19
type Q56061
['Q2939028', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q2939028 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Carla Cerati
action filter_type
action find
entity Carla Cerati
relation place of birth
type administrative territorial entity
['Carla Cerati', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Carla_Cerati property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q628
SYSTEM
Bergamo
Q628
(Q2939028,P19,c(Q56061))
action filter_type
action find
entity Q2939028
relation P19
type Q56061
Carla Cerati was born in [ANSWER]
['Q2939028', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q2939028 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Bergamo
Carla Cerati was born in Bergamo
Bergamo
action filter_type
action find
entity Carla Cerati
relation place of birth
type administrative territorial entity
['Carla Cerati', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Carla_Cerati property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2939028
P21
Q290
USER
Which sex does Carla Cerati belong to ?
(Q2939028,P21,c(Q290))
action filter_type
action find
entity Q2939028
relation P21
type Q290
['Q2939028', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q2939028 property:P21 ?l }
Carla Cerati
action filter_type
action find
entity Carla Cerati
relation gender
type sex
['Carla Cerati', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Carla_Cerati property:gender ?l }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q2939028,P21,c(Q290))
action filter_type
action find
entity Q2939028
relation P21
type Q290
Carla Cerati belongs to [ANSWER]
['Q2939028', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q2939028 property:P21 ?l }
female
Carla Cerati belongs to female
female
action filter_type
action find
entity Carla Cerati
relation gender
type sex
['Carla Cerati', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Carla_Cerati property:gender ?l }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2939028
P20
Q56061
USER
Where did the expiration of Carla Cerati occur ?
(Q2939028,P20,c(Q56061))
action filter_type
action find
entity Q2939028
relation P20
type Q56061
['Q2939028', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q2939028 property:P20 ?g . ?g rdf:type ontology:Q56061 }
Carla Cerati
action filter_type
action find
entity Carla Cerati
relation place of death
type administrative territorial entity
['Carla Cerati', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Carla_Cerati property:place_of_death ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q490
SYSTEM
Milan
Q490
(Q2939028,P20,c(Q56061))
action filter_type
action find
entity Q2939028
relation P20
type Q56061
The expiration of Carla Cerati occurred in [ANSWER]
['Q2939028', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q2939028 property:P20 ?g . ?g rdf:type ontology:Q56061 }
Milan
The expiration of Carla Cerati occurred in Milan
Milan
action filter_type
action find
entity Carla Cerati
relation place of death
type administrative territorial entity
['Carla Cerati', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Carla_Cerati property:place_of_death ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P417
Q502895 Q1445650 Q56061
USER
Which administrative territories have more number of people and holidays as their patron saint than that administrative territory ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action greater
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q490
relation P417
type Q502895
type Q1445650
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?c WHERE { VALUES ( ?e ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?h rdf:type ?e } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Q490 property:P417 ?b . { ?b rdf:type ?p . VALUES ( ?p ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } } } . FILTER ( ?q > ?j ) }
action greater
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Milan
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?c WHERE { VALUES ( ?e ) { ( ontology:common_name ) ( ontology:holiday ) } . ?h rdf:type ?e } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Milan property:patron_saint ?b . { ?b rdf:type ?p . VALUES ( ?p ) { ( ontology:common_name ) ( ontology:holiday ) } } } } . FILTER ( ?q > ?j ) }
[]
common name holiday administrative territorial entity
SYSTEM
2
Q39519 Q220
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action greater
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q490
relation P417
type Q502895
type Q1445650
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?c WHERE { VALUES ( ?e ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?h rdf:type ?e } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Q490 property:P417 ?b . { ?b rdf:type ?p . VALUES ( ?p ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } } } . FILTER ( ?q > ?j ) }
Brinzio Rome
2
action greater
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Milan
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) ?c WHERE { VALUES ( ?e ) { ( ontology:common_name ) ( ontology:holiday ) } . ?h rdf:type ?e } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Milan property:patron_saint ?b . { ?b rdf:type ?p . VALUES ( ?p ) { ( ontology:common_name ) ( ontology:holiday ) } } } } . FILTER ( ?q > ?j ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2939028
P1412
Q34770
USER
Which language does Carla Cerati speak in ?
(Q2939028,P1412,c(Q34770))
action filter_type
action find
entity Q2939028
relation P1412
type Q34770
['Q2939028', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q2939028 property:P1412 ?m . ?m rdf:type ontology:Q34770 }
Carla Cerati
action filter_type
action find
entity Carla Cerati
relation languages spoken, written or signed
type language
['Carla Cerati', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:Carla_Cerati property:languages_spoken,_written_or_signed ?m . ?m rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q2939028,P1412,c(Q34770))
action filter_type
action find
entity Q2939028
relation P1412
type Q34770
Carla Cerati speaks [ANSWER]
['Q2939028', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q2939028 property:P1412 ?m . ?m rdf:type ontology:Q34770 }
Italian
Carla Cerati speaks Italian
Italian
action filter_type
action find
entity Carla Cerati
relation languages spoken, written or signed
type language
['Carla Cerati', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:Carla_Cerati property:languages_spoken,_written_or_signed ?m . ?m rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q18686225
Q34770
USER
And what about Octavio Fuentes Téllez?
(Q18686225,P1412,c(Q34770))
action filter_type
action find
entity Q18686225
relation P1412
type Q34770
['Q18686225', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q18686225 property:P1412 ?b . ?b rdf:type ontology:Q34770 }
Octavio Fuentes Téllez
action filter_type
action find
entity Octavio Fuentes Téllez
relation languages spoken, written or signed
type language
['Octavio Fuentes Téllez', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Octavio_Fuentes_Téllez property:languages_spoken,_written_or_signed ?b . ?b rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q18686225,P1412,c(Q34770))
action filter_type
action find
entity Q18686225
relation P1412
type Q34770
[ANSWER]
['Q18686225', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q18686225 property:P1412 ?b . ?b rdf:type ontology:Q34770 }
Spanish
Spanish
action filter_type
action find
entity Octavio Fuentes Téllez
relation languages spoken, written or signed
type language
['Octavio Fuentes Téllez', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Octavio_Fuentes_Téllez property:languages_spoken,_written_or_signed ?b . ?b rdf:type ontology:language }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q490
P17
Q7275 Q15617994
USER
How many states or administrative territories do Milan belong to ?
(Q490,P17,c(Q7275)) (Q490,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q490
relation P17
type Q7275
action filter_type
action find
entity Q490
relation P17
type Q15617994
['Q490', 'P17', {'concept': 'Q7275'}] ['Q490', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { resource:Q490 property:P17 ?z . ?z rdf:type ontology:Q7275 } UNION { resource:Q490 property:P17 ?z . ?z rdf:type ontology:Q15617994 } }
Milan
action count
action union
action filter_type
action find
entity Milan
relation country
type state
action filter_type
action find
entity Milan
relation country
type designation for an administrative territorial entity
['Milan', 'country', {'concept': 'state'}] ['Milan', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { resource:Milan property:country ?z . ?z rdf:type ontology:state } UNION { resource:Milan property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
state designation for an administrative territorial entity
SYSTEM
8
Q172579 Q729481 Q38 Q209857 Q223936 Q213353 Q153529 Q165154
(Q490,P17,c(Q7275)) (Q490,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q490
relation P17
type Q7275
action filter_type
action find
entity Q490
relation P17
type Q15617994
[ANSWER]
['Q490', 'P17', {'concept': 'Q7275'}] ['Q490', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { resource:Q490 property:P17 ?z . ?z rdf:type ontology:Q7275 } UNION { resource:Q490 property:P17 ?z . ?z rdf:type ontology:Q15617994 } }
Kingdom of Italy Transpadane Republic Italy Kingdom of Lombardy–Venetia Kingdom of Italy Cisalpine Republic Duchy of Milan Kingdom of Sardinia
8
action count
action union
action filter_type
action find
entity Milan
relation country
type state
action filter_type
action find
entity Milan
relation country
type designation for an administrative territorial entity
['Milan', 'country', {'concept': 'state'}] ['Milan', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { resource:Milan property:country ?z . ?z rdf:type ontology:state } UNION { resource:Milan property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18645021 Q18686225
P27
Q15617994
USER
Which administrative territories are the native countriesof Octavio Fuentes Téllez or Radovan Tavzes ?
OR((Q18686225,P27,c(Q15617994)), (Q18645021,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q18686225
relation P27
action find
entity Q18645021
relation P27
type Q15617994
{'OR': [['Q18686225', 'P27', {'concept': 'Q15617994'}], ['Q18645021', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . { { resource:Q18686225 property:P27 ?a } UNION { resource:Q18645021 property:P27 ?a } } }
Radovan Tavzes Octavio Fuentes Téllez
action filter_type
action union
action find
entity Octavio Fuentes Téllez
relation country of citizenship
action find
entity Radovan Tavzes
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Octavio Fuentes Téllez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Radovan Tavzes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Octavio_Fuentes_Téllez property:country_of_citizenship ?a } UNION { resource:Radovan_Tavzes property:country_of_citizenship ?a } } }
[]
designation for an administrative territorial entity
Q96 Q215
SYSTEM
Mexico, Slovenia
Q96 Q215
OR((Q18686225,P27,c(Q15617994)), (Q18645021,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q18686225
relation P27
action find
entity Q18645021
relation P27
type Q15617994
[ANSWERS] are the native countriesof Octavio Fuentes Téllez or Radovan Tavzes
{'OR': [['Q18686225', 'P27', {'concept': 'Q15617994'}], ['Q18645021', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . { { resource:Q18686225 property:P27 ?a } UNION { resource:Q18645021 property:P27 ?a } } }
Mexico Slovenia
Mexico and Slovenia are the native countriesof Octavio Fuentes Téllez or Radovan Tavzes
Mexico Slovenia
action filter_type
action union
action find
entity Octavio Fuentes Téllez
relation country of citizenship
action find
entity Radovan Tavzes
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Octavio Fuentes Téllez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Radovan Tavzes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Octavio_Fuentes_Téllez property:country_of_citizenship ?a } UNION { resource:Radovan_Tavzes property:country_of_citizenship ?a } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P282
Q9779 Q8192 Q34770
USER
Which languages have writing system as min number of alphabets or writing systems ?
(c(Q34770),P282,c(Q9779)|c(Q8192))
action argmin
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q8192
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) ?p WHERE { { ?c rdf:type ontology:Q9779 . ?p rdf:type ontology:Q34770 . ?p property:P282 ?c } UNION { ?p property:P282 ?c . ?c rdf:type ontology:Q8192 . ?p rdf:type ontology:Q34770 } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) ?v WHERE { { ?v property:P282 ?d . ?v rdf:type ontology:Q34770 . ?d rdf:type ontology:Q9779 } UNION { ?v rdf:type ontology:Q34770 . ?d rdf:type ontology:Q8192 . ?v property:P282 ?d } } GROUP BY ?v } . FILTER ( ?k = ?i ) }
action argmin
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type writing system
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) ?p WHERE { { ?c rdf:type ontology:alphabet . ?p rdf:type ontology:language . ?p property:writing_system ?c } UNION { ?p property:writing_system ?c . ?c rdf:type ontology:writing_system . ?p rdf:type ontology:language } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) ?v WHERE { { ?v property:writing_system ?d . ?v rdf:type ontology:language . ?d rdf:type ontology:alphabet } UNION { ?v rdf:type ontology:language . ?d rdf:type ontology:writing_system . ?v property:writing_system ?d } } GROUP BY ?v } . FILTER ( ?k = ?i ) }
[]
alphabet writing system language
Q29572 Q1860 Q447117
SYSTEM
Avestan, English, Old Egyptian
Q7102906 Q20832 Q29572 Q20831 Q1133488 Q13414913 Q402878 Q36708 Q35470 Q36741 Q35668 Q8785 Q35726 Q1321 Q21161949 Q25167 Q18130932 Q11732220 Q33976 Q856383 Q149838 Q47625 Q36822 Q2705672 Q33879 Q7362035 Q36795 Q56472 Q6047309 Q8752 Q36178 Q9056 Q397 Q20972034 Q56512 Q35505 Q36957 Q25164 Q56982 Q35308 Q36790 Q1860 Q36116 Q36751 Q29977 Q837985 Q447117 Q7511561 Q33982
(c(Q34770),P282,c(Q9779)|c(Q8192))
action argmin
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q8192
[ANSWERS] have writing system as min number of alphabets or writing systems
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) ?p WHERE { { ?c rdf:type ontology:Q9779 . ?p rdf:type ontology:Q34770 . ?p property:P282 ?c } UNION { ?p property:P282 ?c . ?c rdf:type ontology:Q8192 . ?p rdf:type ontology:Q34770 } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) ?v WHERE { { ?v property:P282 ?d . ?v rdf:type ontology:Q34770 . ?d rdf:type ontology:Q9779 } UNION { ?v rdf:type ontology:Q34770 . ?d rdf:type ontology:Q8192 . ?v property:P282 ?d } } GROUP BY ?v } . FILTER ( ?k = ?i ) }
Orizaba Nahuatl Wailaki language Avestan Cahto language Old Gutnish Simplified Chinese Middle Polish Norn Elamite language Polabian Hittite Armenian Etruscan Spanish Serbian written in Latin script Bokmål Traditional Chinese Archaic Greek Sardinian language Pictish Old Polish Burgundian Slovincian language Paeonian language Pangasinan language Roman Khowar Tartessian Shuadit language Central Nahuatl Basque Nabataean language Czech Latin Classic Greek Anêm language Old Norse language Umbrian Nynorsk Judaeo-Portuguese Old Irish Sumerian English Middle Irish Phrygian language Gaulish Middle High German Old Egyptian Sierra Puebla Nahuatl Low Prussian
Avestan, English and Old Egyptian have writing system as min number of alphabets or writing systems
Avestan English Old Egyptian
action argmin
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type writing system
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) ?p WHERE { { ?c rdf:type ontology:alphabet . ?p rdf:type ontology:language . ?p property:writing_system ?c } UNION { ?p property:writing_system ?c . ?c rdf:type ontology:writing_system . ?p rdf:type ontology:language } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) ?v WHERE { { ?v property:writing_system ?d . ?v rdf:type ontology:language . ?d rdf:type ontology:alphabet } UNION { ?v rdf:type ontology:language . ?d rdf:type ontology:writing_system . ?v property:writing_system ?d } } GROUP BY ?v } . FILTER ( ?k = ?i ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q628
P6
Q502895
USER
Who is the head of the government of Bergamo ?
(Q628,P6,c(Q502895))
action filter_type
action find
entity Q628
relation P6
type Q502895
['Q628', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q628 property:P6 ?h . ?h rdf:type ontology:Q502895 }
Bergamo
action filter_type
action find
entity Bergamo
relation head of government
type common name
['Bergamo', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Bergamo property:head_of_government ?h . ?h rdf:type ontology:common_name }
[]
common name
Q3765505
SYSTEM
Giorgio Gori
Q3765505
(Q628,P6,c(Q502895))
action filter_type
action find
entity Q628
relation P6
type Q502895
The head of the government of Bergamo is [ANSWER]
['Q628', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q628 property:P6 ?h . ?h rdf:type ontology:Q502895 }
Giorgio Gori
The head of the government of Bergamo is Giorgio Gori
Giorgio Gori
action filter_type
action find
entity Bergamo
relation head of government
type common name
['Bergamo', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Bergamo property:head_of_government ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q983622
Q502895
USER
And how about Diezma?
(Q983622,P6,c(Q502895))
action filter_type
action find
entity Q983622
relation P6
type Q502895
['Q983622', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q983622 property:P6 ?a . ?a rdf:type ontology:Q502895 }
Diezma
action filter_type
action find
entity Diezma
relation head of government
type common name
['Diezma', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Diezma property:head_of_government ?a . ?a rdf:type ontology:common_name }
[]
common name
Q14078334
SYSTEM
Jose Jesus Garcia Rodriguez
Q14078334
(Q983622,P6,c(Q502895))
action filter_type
action find
entity Q983622
relation P6
type Q502895
[ANSWER]
['Q983622', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q983622 property:P6 ?a . ?a rdf:type ontology:Q502895 }
Jose Jesus Garcia Rodriguez
Jose Jesus Garcia Rodriguez
action filter_type
action find
entity Diezma
relation head of government
type common name
['Diezma', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Diezma property:head_of_government ?a . ?a rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P407
Q34770 Q14795564 Q234460
USER
Which languages are the languages of work for max number of determinators for date of periodic occurrence and texts ?
(c(Q14795564)|c(Q234460),P407,c(Q34770))
action argmax
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q14795564
action find_reverse_tuple_counts
relation P407
type Q34770
type Q234460
[[{'concept': 'Q14795564'}, {'concept': 'Q234460'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?d ) { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?j ) WHERE { ?o rdf:type ?g . VALUES ( ?g ) { ( ontology:Q234460 ) ( ontology:Q14795564 ) } } GROUP BY ?n } } . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?s ) WHERE { { ?e property:P407 ?k . ?k rdf:type ontology:Q34770 . ?e rdf:type ontology:Q14795564 } UNION { ?e property:P407 ?k . ?k rdf:type ontology:Q34770 . ?e rdf:type ontology:Q234460 } } GROUP BY ?k } . FILTER ( ?s = ?d ) }
action argmax
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type determinator for date of periodic occurrence
action find_reverse_tuple_counts
relation language of work or name
type language
type text
[[{'concept': 'determinator for date of periodic occurrence'}, {'concept': 'text'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?d ) { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?j ) WHERE { ?o rdf:type ?g . VALUES ( ?g ) { ( ontology:text ) ( ontology:determinator_for_date_of_periodic_occurrence ) } } GROUP BY ?n } } . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?s ) WHERE { { ?e property:language_of_work_or_name ?k . ?k rdf:type ontology:language . ?e rdf:type ontology:determinator_for_date_of_periodic_occurrence } UNION { ?e property:language_of_work_or_name ?k . ?k rdf:type ontology:language . ?e rdf:type ontology:text } } GROUP BY ?k } . FILTER ( ?s = ?d ) }
[]
language determinator for date of periodic occurrence text
Q1860
SYSTEM
English
Q1860
(c(Q14795564)|c(Q234460),P407,c(Q34770))
action argmax
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q14795564
action find_reverse_tuple_counts
relation P407
type Q34770
type Q234460
[ANSWER] is the languages of work for max number of determinators for date of periodic occurrence and texts
[[{'concept': 'Q14795564'}, {'concept': 'Q234460'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?d ) { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?j ) WHERE { ?o rdf:type ?g . VALUES ( ?g ) { ( ontology:Q234460 ) ( ontology:Q14795564 ) } } GROUP BY ?n } } . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?s ) WHERE { { ?e property:P407 ?k . ?k rdf:type ontology:Q34770 . ?e rdf:type ontology:Q14795564 } UNION { ?e property:P407 ?k . ?k rdf:type ontology:Q34770 . ?e rdf:type ontology:Q234460 } } GROUP BY ?k } . FILTER ( ?s = ?d ) }
English
English is the languages of work for max number of determinators for date of periodic occurrence and texts
English
action argmax
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type determinator for date of periodic occurrence
action find_reverse_tuple_counts
relation language of work or name
type language
type text
[[{'concept': 'determinator for date of periodic occurrence'}, {'concept': 'text'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?d ) { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?j ) WHERE { ?o rdf:type ?g . VALUES ( ?g ) { ( ontology:text ) ( ontology:determinator_for_date_of_periodic_occurrence ) } } GROUP BY ?n } } . { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?s ) WHERE { { ?e property:language_of_work_or_name ?k . ?k rdf:type ontology:language . ?e rdf:type ontology:determinator_for_date_of_periodic_occurrence } UNION { ?e property:language_of_work_or_name ?k . ?k rdf:type ontology:language . ?e rdf:type ontology:text } } GROUP BY ?k } . FILTER ( ?s = ?d ) }
[]