Simple Question (Direct)
Simple Question
Q312324
P1412
Q34770
USER
Which language is Giuseppe Di Stefano capable of writing ?
(Q312324,P1412,c(Q34770))
action filter_type
action find
entity Q312324
relation P1412
type Q34770
['Q312324', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { resource:Q312324 property:P1412 ?d . ?d rdf:type ontology:Q34770 }
Giuseppe Di Stefano
action filter_type
action find
entity Giuseppe Di Stefano
relation languages spoken, written or signed
type language
['Giuseppe Di Stefano', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { resource:Giuseppe_Di_Stefano property:languages_spoken,_written_or_signed ?d . ?d rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q312324,P1412,c(Q34770))
action filter_type
action find
entity Q312324
relation P1412
type Q34770
[ANSWER] is Giuseppe Di Stefano capable of writing
['Q312324', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { resource:Q312324 property:P1412 ?d . ?d rdf:type ontology:Q34770 }
Italian
Italian is Giuseppe Di Stefano capable of writing
Italian
action filter_type
action find
entity Giuseppe Di Stefano
relation languages spoken, written or signed
type language
['Giuseppe Di Stefano', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { resource:Giuseppe_Di_Stefano property:languages_spoken,_written_or_signed ?d . ?d rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q652
P101
Q502895
USER
Which people work in the domain of that language ?
(c(Q502895),P101,Q652)
action filter_type
action find_reverse
entity Q652
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q652']
SELECT DISTINCT ?w WHERE { ?w property:P101 resource:Q652 . ?w rdf:type ontology:Q502895 }
Italian
action filter_type
action find_reverse
entity Italian
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'Italian']
SELECT DISTINCT ?w WHERE { ?w property:field_of_work resource:Italian . ?w rdf:type ontology:common_name }
[]
common name
Q3945958 Q12025436 Q12028963
SYSTEM
Salvatore Battaglia, Jiří Pelán, Kateřina Vinšová
Q12028963 Q21886139 Q3945958 Q11985382 Q11985590 Q12025436
(c(Q502895),P101,Q652)
action filter_type
action find_reverse
entity Q652
relation P101
type Q502895
[ANSWERS] work in the domain of that language
[{'concept': 'Q502895'}, 'P101', 'Q652']
SELECT DISTINCT ?w WHERE { ?w property:P101 resource:Q652 . ?w rdf:type ontology:Q502895 }
Kateřina Vinšová Miloslav Uličný Salvatore Battaglia Václav Bahník Václav Jiřina Jiří Pelán
Salvatore Battaglia, Jiří Pelán and Kateřina Vinšová work in the domain of that language
Salvatore Battaglia Jiří Pelán Kateřina Vinšová
action filter_type
action find_reverse
entity Italian
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'Italian']
SELECT DISTINCT ?w WHERE { ?w property:field_of_work resource:Italian . ?w rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can exactly 2 people perform with ?
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?g = 2 ) . { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?x rdf:type ontology:Q502895 } GROUP BY ?p } }
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?g = 2 ) . { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?x rdf:type ontology:common_name } GROUP BY ?p } }
[]
musical instrument common name
Q862501 Q201129 Q424017
SYSTEM
ondes Martenot, lyre, acoustic bass guitar
Q201129 Q424017 Q3574843 Q182718 Q862501 Q537750 Q1300012 Q483994
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?g = 2 ) . { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?x rdf:type ontology:Q502895 } GROUP BY ?p } }
lyre acoustic bass guitar tonbak Nyckelharpa ondes Martenot Djembe toy piano Kazoo
Which musical instruments can exactly 2 people perform with
ondes Martenot lyre acoustic bass guitar
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?g = 2 ) . { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?g ) WHERE { ?x property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?x rdf:type ontology:common_name } GROUP BY ?p } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1954122 Q12025436
P27 P17
Q15617994
USER
Which administrative territories are the countries of citizenship of Jiří Pelán or are Orlov dol situated in ?
OR((Q12025436,P27,c(Q15617994)), (Q1954122,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q12025436
relation P27
action find
entity Q1954122
relation P17
type Q15617994
{'OR': [['Q12025436', 'P27', {'concept': 'Q15617994'}], ['Q1954122', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . { { resource:Q1954122 property:P17 ?d } UNION { resource:Q12025436 property:P27 ?d } } }
Orlov dol Jiří Pelán
action filter_type
action union
action find
entity Jiří Pelán
relation country of citizenship
action find
entity Orlov dol
relation country
type designation for an administrative territorial entity
{'OR': [['Jiří Pelán', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Orlov dol', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Orlov_dol property:country ?d } UNION { resource:Jiří_Pelán property:country_of_citizenship ?d } } }
[]
designation for an administrative territorial entity
Q213 Q219
SYSTEM
Czech Republic, Bulgaria
Q213 Q219
OR((Q12025436,P27,c(Q15617994)), (Q1954122,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q12025436
relation P27
action find
entity Q1954122
relation P17
type Q15617994
[ANSWERS] are the countries of citizenship of Jiří Pelán or are Orlov dol situated in
{'OR': [['Q12025436', 'P27', {'concept': 'Q15617994'}], ['Q1954122', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . { { resource:Q1954122 property:P17 ?d } UNION { resource:Q12025436 property:P27 ?d } } }
Czech Republic Bulgaria
Czech Republic and Bulgaria are the countries of citizenship of Jiří Pelán or are Orlov dol situated in
Czech Republic Bulgaria
action filter_type
action union
action find
entity Jiří Pelán
relation country of citizenship
action find
entity Orlov dol
relation country
type designation for an administrative territorial entity
{'OR': [['Jiří Pelán', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Orlov dol', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Orlov_dol property:country ?d } UNION { resource:Jiří_Pelán property:country_of_citizenship ?d } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4781967
P17
Q573
USER
Are April 20 located in those administrative territories ?
(Q4781967,P17,Q213) (Q4781967,P17,Q219)
action is_in
entity prev_answer
action find
entity Q4781967
relation P17
['Q4781967', 'P17', 'Q213'] ['Q4781967', 'P17', 'Q219']
ASK WHERE { resource:Q4781967 property:P17 ?o . VALUES ( ?o ) { ( resource:Q213 ) ( resource:Q219 ) } }
April 20
action is_in
entity prev_answer
action find
entity April 20
relation country
['April 20', 'country', 'Czech Republic'] ['April 20', 'country', 'Bulgaria']
ASK WHERE { resource:April_20 property:country ?o . VALUES ( ?o ) { ( resource:Czech_Republic ) ( resource:Bulgaria ) } }
[]
day
SYSTEM
NO
(Q4781967,P17,Q213) (Q4781967,P17,Q219)
action is_in
entity prev_answer
action find
entity Q4781967
relation P17
[ANSWER]
['Q4781967', 'P17', 'Q213'] ['Q4781967', 'P17', 'Q219']
ASK WHERE { resource:Q4781967 property:P17 ?o . VALUES ( ?o ) { ( resource:Q213 ) ( resource:Q219 ) } }
No
action is_in
entity prev_answer
action find
entity April 20
relation country
['April 20', 'country', 'Czech Republic'] ['April 20', 'country', 'Bulgaria']
ASK WHERE { resource:April_20 property:country ?o . VALUES ( ?o ) { ( resource:Czech_Republic ) ( resource:Bulgaria ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q82025
P180
Q15617994 Q838948 Q3305213
USER
How many administrative territories are expressed in less number of works of art or paintings than horn ?
(c(Q838948)|c(Q3305213),P180,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q82025
relation P180
type Q838948
type Q3305213
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?m ) AS ?u ) WHERE { { ?i rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q838948 . ?m property:P180 ?i } UNION { ?m property:P180 ?i . ?i rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q3305213 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { VALUES ( ?a ) { ( ontology:Q838948 ) ( ontology:Q3305213 ) } . ?v rdf:type ?a } . ?v property:P180 resource:Q82025 } } . FILTER ( ?u < ?w ) }
horn
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action count
action filter_multi_types
action find_reverse
entity horn
relation depicts
type work of art
type painting
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?m ) AS ?u ) WHERE { { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:work_of_art . ?m property:depicts ?i } UNION { ?m property:depicts ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:painting } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { VALUES ( ?a ) { ( ontology:work_of_art ) ( ontology:painting ) } . ?v rdf:type ?a } . ?v property:depicts resource:horn } } . FILTER ( ?u < ?w ) }
[]
designation for an administrative territorial entity work of art painting
SYSTEM
93
Q3883 Q1256 Q1462 Q241744 Q674904 Q668 Q142 Q55 Q145 Q47505 Q148 Q128081 Q131596 Q712 Q711 Q243467 Q72672 Q1460 Q660687 Q159 Q41 Q155 Q794 Q160262 Q243128 Q739 Q254356 Q15260970 Q822 Q532 Q11343 Q268214 Q13376 Q12594 Q34 Q928 Q39 Q38 Q858 Q199952 Q854 Q736 Q1280 Q1282 Q20 Q27 Q188315 Q29 Q7077 Q80644 Q189 Q1028 Q47821 Q12574 Q12578 Q223 Q12675 Q229 Q17 Q553347 Q551142 Q652480 Q111144 Q298 Q13320 Q186115 Q373189 Q159605 Q72425 Q12657 Q1438 Q26300792 Q183366 Q6256 Q79 Q72432 Q811 Q772 Q1016 Q1273 Q1011 Q913434 Q242683 Q80563 Q376896 Q34876 Q689720 Q33788 Q12563 Q190963 Q80591 Q42288 Q1034158
(c(Q838948)|c(Q3305213),P180,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q82025
relation P180
type Q838948
type Q3305213
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?m ) AS ?u ) WHERE { { ?i rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q838948 . ?m property:P180 ?i } UNION { ?m property:P180 ?i . ?i rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q3305213 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { VALUES ( ?a ) { ( ontology:Q838948 ) ( ontology:Q3305213 ) } . ?v rdf:type ?a } . ?v property:P180 resource:Q82025 } } . FILTER ( ?u < ?w ) }
Catanzaro Liguria Sardinia Ariccia Krumau am Kamp India France Netherlands United Kingdom Dolo People's Republic of China Cori, Lazio farm Fiji Mongolia Subiaco Sorrento Sicily Velden am Wörther See Russia Greece Brazil Iran Caprarola Olevano Romano Colombia Murnau am Staffelsee Nantcribba Lebanon village Wetter (Ruhr) Bordighera Pistoia Marne Sweden Philippines Switzerland Italy Syria Taormina Sri Lanka Ecuador Umbria Lazio Norway Ireland Porto Venere Spain Dachau Köngen Iceland Morocco Malcesine Loiret Lot-et-Garonne Greenland Oise Cyprus Japan Kobern-Gondorf Wartenberg Kennemerland Canossa Chile Savona Montmartre Bithynia Tivoli Pozzuoli Nièvre Campania Rhos Y Madoc territory country Egypt Procida Nicaragua Drenthe Libya Tuscany Cape Verde Les Halles Genzano di Roma Amalfi Grenelle province Thörl New Caledonia Landes Frascati Atrani Asola Cap Norfeu
93
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action count
action filter_multi_types
action find_reverse
entity horn
relation depicts
type work of art
type painting
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?m ) AS ?u ) WHERE { { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:work_of_art . ?m property:depicts ?i } UNION { ?m property:depicts ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:painting } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { VALUES ( ?a ) { ( ontology:work_of_art ) ( ontology:painting ) } . ?v rdf:type ?a } . ?v property:depicts resource:horn } } . FILTER ( ?u < ?w ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q772
P180
Q15617994 Q838948 Q3305213
USER
And how about Drenthe?
(c(Q838948)|c(Q3305213),P180,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q772
relation P180
type Q838948
type Q3305213
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?w ) WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:Q3305213 ) ( ontology:Q838948 ) } } GROUP BY ?m } . FILTER ( ?w < ?z ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { ?x property:P180 resource:Q772 . { { ?x rdf:type ontology:Q838948 } UNION { ?x rdf:type ontology:Q3305213 } } } } }
Drenthe
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action count
action filter_multi_types
action find_reverse
entity Drenthe
relation depicts
type work of art
type painting
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?w ) WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:painting ) ( ontology:work_of_art ) } } GROUP BY ?m } . FILTER ( ?w < ?z ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { ?x property:depicts resource:Drenthe . { { ?x rdf:type ontology:work_of_art } UNION { ?x rdf:type ontology:painting } } } } }
[]
designation for an administrative territorial entity work of art painting
SYSTEM
85
Q1256 Q1462 Q241744 Q674904 Q668 Q142 Q55 Q145 Q47505 Q148 Q128081 Q711 Q243467 Q72672 Q1460 Q660687 Q159 Q41 Q155 Q794 Q160262 Q243128 Q739 Q254356 Q15260970 Q822 Q11343 Q268214 Q13376 Q12594 Q34 Q928 Q39 Q858 Q199952 Q854 Q736 Q1280 Q1282 Q20 Q27 Q188315 Q29 Q7077 Q189 Q1028 Q47821 Q12574 Q12578 Q223 Q12675 Q229 Q17 Q553347 Q551142 Q652480 Q111144 Q298 Q13320 Q186115 Q373189 Q159605 Q72425 Q12657 Q1438 Q26300792 Q183366 Q6256 Q79 Q72432 Q811 Q1016 Q1011 Q913434 Q242683 Q80563 Q376896 Q34876 Q689720 Q33788 Q12563 Q190963 Q80591 Q42288 Q1034158
(c(Q838948)|c(Q3305213),P180,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q772
relation P180
type Q838948
type Q3305213
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?w ) WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:Q3305213 ) ( ontology:Q838948 ) } } GROUP BY ?m } . FILTER ( ?w < ?z ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { ?x property:P180 resource:Q772 . { { ?x rdf:type ontology:Q838948 } UNION { ?x rdf:type ontology:Q3305213 } } } } }
Liguria Sardinia Ariccia Krumau am Kamp India France Netherlands United Kingdom Dolo People's Republic of China Cori, Lazio Mongolia Subiaco Sorrento Sicily Velden am Wörther See Russia Greece Brazil Iran Caprarola Olevano Romano Colombia Murnau am Staffelsee Nantcribba Lebanon Wetter (Ruhr) Bordighera Pistoia Marne Sweden Philippines Switzerland Syria Taormina Sri Lanka Ecuador Umbria Lazio Norway Ireland Porto Venere Spain Dachau Iceland Morocco Malcesine Loiret Lot-et-Garonne Greenland Oise Cyprus Japan Kobern-Gondorf Wartenberg Kennemerland Canossa Chile Savona Montmartre Bithynia Tivoli Pozzuoli Nièvre Campania Rhos Y Madoc territory country Egypt Procida Nicaragua Libya Cape Verde Les Halles Genzano di Roma Amalfi Grenelle province Thörl New Caledonia Landes Frascati Atrani Asola Cap Norfeu
85
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action count
action filter_multi_types
action find_reverse
entity Drenthe
relation depicts
type work of art
type painting
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?w ) WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:painting ) ( ontology:work_of_art ) } } GROUP BY ?m } . FILTER ( ?w < ?z ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { ?x property:depicts resource:Drenthe . { { ?x rdf:type ontology:work_of_art } UNION { ?x rdf:type ontology:painting } } } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with around 107 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 107
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?s = 107 ) . { SELECT DISTINCT ?l ( COUNT ( ?r ) AS ?s ) WHERE { ?l property:P530 ?r . ?l rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?l } }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 107
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?s = 107 ) . { SELECT DISTINCT ?l ( COUNT ( ?r ) AS ?s ) WHERE { ?l property:diplomatic_relation ?r . ?l rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 107
[ANSWERS] have ambassadorial relations with around 107 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?s = 107 ) . { SELECT DISTINCT ?l ( COUNT ( ?r ) AS ?s ) WHERE { ?l property:P530 ?r . ?l rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?l } }
Germany Australia
Germany and Australia have ambassadorial relations with around 107 administrative territories
Germany Australia
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 107
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?s = 107 ) . { SELECT DISTINCT ?l ( COUNT ( ?r ) AS ?s ) WHERE { ?l property:diplomatic_relation ?r . ?l rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P1427
Q1048835 Q2912397
USER
Which political territories do more number of single-day races originate from than that political territory ?
(c(Q2912397),P1427,c(Q1048835))
[{'concept': 'Q2912397'}, 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { ?z property:P1427 ?y . ?z rdf:type ontology:Q2912397 . ?y rdf:type ontology:Q1048835 }
[{'concept': 'single-day race'}, 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { ?z property:start_point ?y . ?z rdf:type ontology:single-day_race . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity single-day race
Comparative|More/Less|Single entity type|Clarification
Q408
SYSTEM
Did you mean Australia ?
(c(Q2912397),P1427,c(Q1048835))
[ANSWER]
[{'concept': 'Q2912397'}, 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { ?z property:P1427 ?y . ?z rdf:type ontology:Q2912397 . ?y rdf:type ontology:Q1048835 }
Did you mean Australia ?
Australia
[{'concept': 'single-day race'}, 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { ?z property:start_point ?y . ?z rdf:type ontology:single-day_race . ?y rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
USER
No, I meant Germany. Could you tell me the answer for that?
(c(Q2912397),P1427,c(Q1048835))
Q183
[{'concept': 'Q2912397'}, 'P1427', {'concept': 'Q1048835'}]
[{'concept': 'single-day race'}, 'start point', {'concept': 'political territorial entity'}]
[]
Q492420 Q672483
SYSTEM
Getxo, Ordizia
Q492420 Q672483
(c(Q2912397),P1427,c(Q1048835))
[ANSWERS] more number of single-day races originate from than that political territory
[{'concept': 'Q2912397'}, 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { ?z property:P1427 ?y . ?z rdf:type ontology:Q2912397 . ?y rdf:type ontology:Q1048835 }
Getxo Ordizia
Getxo and Ordizia more number of single-day races originate from than that political territory
Getxo Ordizia
[{'concept': 'single-day race'}, 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { ?z property:start_point ?y . ?z rdf:type ontology:single-day_race . ?y rdf:type ontology:political_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P47
Q56061 Q1048835
USER
How many administrative territories or political territories are next to the border of that political territory ?
(c(Q56061),P47,Q492420) (c(Q1048835),P47,Q492420) (c(Q56061),P47,Q492420) (c(Q1048835),P47,Q492420) (c(Q56061),P47,Q672483) (c(Q1048835),P47,Q672483)
[{'concept': 'Q56061'}, 'P47', 'Q492420'] [{'concept': 'Q1048835'}, 'P47', 'Q492420'] [{'concept': 'Q56061'}, 'P47', 'Q492420'] [{'concept': 'Q1048835'}, 'P47', 'Q492420'] [{'concept': 'Q56061'}, 'P47', 'Q672483'] [{'concept': 'Q1048835'}, 'P47', 'Q672483']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q492420 } UNION { ?y property:P47 resource:Q492420 } UNION { ?z property:P47 resource:Q492420 } UNION { ?y property:P47 resource:Q492420 } UNION { ?z property:P47 resource:Q672483 } UNION { ?y property:P47 resource:Q672483 } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1048835 }
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Getxo'] [{'concept': 'political territorial entity'}, 'shares border with', 'Getxo'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Getxo'] [{'concept': 'political territorial entity'}, 'shares border with', 'Getxo'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Ordizia'] [{'concept': 'political territorial entity'}, 'shares border with', 'Ordizia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Getxo } UNION { ?y property:shares_border_with resource:Getxo } UNION { ?z property:shares_border_with resource:Getxo } UNION { ?y property:shares_border_with resource:Getxo } UNION { ?z property:shares_border_with resource:Ordizia } UNION { ?y property:shares_border_with resource:Ordizia } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
administrative territorial entity political territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q492420
SYSTEM
Did you mean Getxo ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q492420 } UNION { ?y property:P47 resource:Q492420 } UNION { ?z property:P47 resource:Q492420 } UNION { ?y property:P47 resource:Q492420 } UNION { ?z property:P47 resource:Q672483 } UNION { ?y property:P47 resource:Q672483 } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1048835 }
Did you mean Getxo ?
Getxo
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Getxo } UNION { ?y property:shares_border_with resource:Getxo } UNION { ?z property:shares_border_with resource:Getxo } UNION { ?y property:shares_border_with resource:Getxo } UNION { ?z property:shares_border_with resource:Ordizia } UNION { ?y property:shares_border_with resource:Ordizia } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q56061),P47,Q492420) (c(Q1048835),P47,Q492420) (c(Q56061),P47,Q492420) (c(Q1048835),P47,Q492420) (c(Q56061),P47,Q672483) (c(Q1048835),P47,Q672483)
[{'concept': 'Q56061'}, 'P47', 'Q492420'] [{'concept': 'Q1048835'}, 'P47', 'Q492420'] [{'concept': 'Q56061'}, 'P47', 'Q492420'] [{'concept': 'Q1048835'}, 'P47', 'Q492420'] [{'concept': 'Q56061'}, 'P47', 'Q672483'] [{'concept': 'Q1048835'}, 'P47', 'Q672483']
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Getxo'] [{'concept': 'political territorial entity'}, 'shares border with', 'Getxo'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Getxo'] [{'concept': 'political territorial entity'}, 'shares border with', 'Getxo'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Ordizia'] [{'concept': 'political territorial entity'}, 'shares border with', 'Ordizia']
[]
SYSTEM
5
Q548441 Q913272 Q1242343 Q657407 Q530302
(c(Q56061),P47,Q492420) (c(Q1048835),P47,Q492420) (c(Q56061),P47,Q492420) (c(Q1048835),P47,Q492420) (c(Q56061),P47,Q672483) (c(Q1048835),P47,Q672483)
[ANSWER]
[{'concept': 'Q56061'}, 'P47', 'Q492420'] [{'concept': 'Q1048835'}, 'P47', 'Q492420'] [{'concept': 'Q56061'}, 'P47', 'Q492420'] [{'concept': 'Q1048835'}, 'P47', 'Q492420'] [{'concept': 'Q56061'}, 'P47', 'Q672483'] [{'concept': 'Q1048835'}, 'P47', 'Q672483']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q492420 } UNION { ?y property:P47 resource:Q492420 } UNION { ?z property:P47 resource:Q492420 } UNION { ?y property:P47 resource:Q492420 } UNION { ?z property:P47 resource:Q672483 } UNION { ?y property:P47 resource:Q672483 } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1048835 }
Portugalete Erandio Berango Sopela Leioa
5
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Getxo'] [{'concept': 'political territorial entity'}, 'shares border with', 'Getxo'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Getxo'] [{'concept': 'political territorial entity'}, 'shares border with', 'Getxo'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Ordizia'] [{'concept': 'political territorial entity'}, 'shares border with', 'Ordizia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Getxo } UNION { ?y property:shares_border_with resource:Getxo } UNION { ?z property:shares_border_with resource:Getxo } UNION { ?y property:shares_border_with resource:Getxo } UNION { ?z property:shares_border_with resource:Ordizia } UNION { ?y property:shares_border_with resource:Ordizia } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q492420
P1444
Q2912397
USER
Which single-day race finally halts at Getxo ?
(c(Q2912397),P1444,Q492420)
action filter_type
action find_reverse
entity Q492420
relation P1444
type Q2912397
[{'concept': 'Q2912397'}, 'P1444', 'Q492420']
SELECT DISTINCT ?y WHERE { ?y property:P1444 resource:Q492420 . ?y rdf:type ontology:Q2912397 }
Getxo
action filter_type
action find_reverse
entity Getxo
relation destination point
type single-day race
[{'concept': 'single-day race'}, 'destination point', 'Getxo']
SELECT DISTINCT ?y WHERE { ?y property:destination_point resource:Getxo . ?y rdf:type ontology:single-day_race }
[]
single-day race
Q21516805
SYSTEM
2016 Circuito de Guecho
Q21516805
(c(Q2912397),P1444,Q492420)
action filter_type
action find_reverse
entity Q492420
relation P1444
type Q2912397
Which single-day race finally halts at Getxo
[{'concept': 'Q2912397'}, 'P1444', 'Q492420']
SELECT DISTINCT ?y WHERE { ?y property:P1444 resource:Q492420 . ?y rdf:type ontology:Q2912397 }
2016 Circuito de Guecho
Which single-day race finally halts at Getxo
2016 Circuito de Guecho
action filter_type
action find_reverse
entity Getxo
relation destination point
type single-day race
[{'concept': 'single-day race'}, 'destination point', 'Getxo']
SELECT DISTINCT ?y WHERE { ?y property:destination_point resource:Getxo . ?y rdf:type ontology:single-day_race }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q492420
P206
Q15324
USER
Which body of water is situated close to Getxo ?
(Q492420,P206,c(Q15324))
action filter_type
action find
entity Q492420
relation P206
type Q15324
['Q492420', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?o WHERE { resource:Q492420 property:P206 ?o . ?o rdf:type ontology:Q15324 }
Getxo
action filter_type
action find
entity Getxo
relation located next to body of water
type body of water
['Getxo', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?o WHERE { resource:Getxo property:located_next_to_body_of_water ?o . ?o rdf:type ontology:body_of_water }
[]
body of water
Q2090594
SYSTEM
Cantabrian Sea
Q2090594
(Q492420,P206,c(Q15324))
action filter_type
action find
entity Q492420
relation P206
type Q15324
The [ANSWER] is situated close to Getxo
['Q492420', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?o WHERE { resource:Q492420 property:P206 ?o . ?o rdf:type ontology:Q15324 }
Cantabrian Sea
The Cantabrian Sea is situated close to Getxo
Cantabrian Sea
action filter_type
action find
entity Getxo
relation located next to body of water
type body of water
['Getxo', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?o WHERE { resource:Getxo property:located_next_to_body_of_water ?o . ?o rdf:type ontology:body_of_water }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3777131
Q15324
USER
And what about Spike Island, County Cork?
(Q3777131,P206,c(Q15324))
action filter_type
action find
entity Q3777131
relation P206
type Q15324
['Q3777131', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?n WHERE { resource:Q3777131 property:P206 ?n . ?n rdf:type ontology:Q15324 }
Spike Island, County Cork
action filter_type
action find
entity Spike Island, County Cork
relation located next to body of water
type body of water
['Spike Island, County Cork', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?n WHERE { resource:Spike_Island,_County_Cork property:located_next_to_body_of_water ?n . ?n rdf:type ontology:body_of_water }
[]
body of water
Q932369
SYSTEM
Cork Harbour
Q932369
(Q3777131,P206,c(Q15324))
action filter_type
action find
entity Q3777131
relation P206
type Q15324
[ANSWER]
['Q3777131', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?n WHERE { resource:Q3777131 property:P206 ?n . ?n rdf:type ontology:Q15324 }
Cork Harbour
Cork Harbour
action filter_type
action find
entity Spike Island, County Cork
relation located next to body of water
type body of water
['Spike Island, County Cork', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?n WHERE { resource:Spike_Island,_County_Cork property:located_next_to_body_of_water ?n . ?n rdf:type ontology:body_of_water }
[]