Simple Question (Direct)
Simple Question
Q2307409
P1412
Q34770
USER
Which language is Pablo Ricchetti capable of writing ?
(Q2307409,P1412,c(Q34770))
action filter_type
action find
entity Q2307409
relation P1412
type Q34770
['Q2307409', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { resource:Q2307409 property:P1412 ?j . ?j rdf:type ontology:Q34770 }
Pablo Ricchetti
action filter_type
action find
entity Pablo Ricchetti
relation languages spoken, written or signed
type language
['Pablo Ricchetti', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { resource:Pablo_Ricchetti property:languages_spoken,_written_or_signed ?j . ?j rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q2307409,P1412,c(Q34770))
action filter_type
action find
entity Q2307409
relation P1412
type Q34770
[ANSWER] is Pablo Ricchetti capable of writing
['Q2307409', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { resource:Q2307409 property:P1412 ?j . ?j rdf:type ontology:Q34770 }
Spanish
Spanish is Pablo Ricchetti capable of writing
Spanish
action filter_type
action find
entity Pablo Ricchetti
relation languages spoken, written or signed
type language
['Pablo Ricchetti', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { resource:Pablo_Ricchetti property:languages_spoken,_written_or_signed ?j . ?j rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2307409
P21
Q290
USER
Which sex does Pablo Ricchetti have ?
(Q2307409,P21,c(Q290))
action filter_type
action find
entity Q2307409
relation P21
type Q290
['Q2307409', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q2307409 property:P21 ?e . ?e rdf:type ontology:Q290 }
Pablo Ricchetti
action filter_type
action find
entity Pablo Ricchetti
relation gender
type sex
['Pablo Ricchetti', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Pablo_Ricchetti property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2307409,P21,c(Q290))
action filter_type
action find
entity Q2307409
relation P21
type Q290
Pablo Ricchetti has a [ANSWER]
['Q2307409', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q2307409 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
Pablo Ricchetti has a male
male
action filter_type
action find
entity Pablo Ricchetti
relation gender
type sex
['Pablo Ricchetti', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Pablo_Ricchetti property:gender ?e . ?e rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q471788
P1533
Q82799
USER
Which name is indistinguishable from Joseph ?
(Q471788,P1533,c(Q82799))
action filter_type
action find
entity Q471788
relation P1533
type Q82799
['Q471788', 'P1533', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q82799 . resource:Q471788 property:P1533 ?y }
Joseph
action filter_type
action find
entity Joseph
relation family name identical to this first name
type name
['Joseph', 'family name identical to this first name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:name . resource:Joseph property:family_name_identical_to_this_first_name ?y }
[]
name
Q15297160
SYSTEM
Joseph
Q15297160
(Q471788,P1533,c(Q82799))
action filter_type
action find
entity Q471788
relation P1533
type Q82799
[ANSWER] is indistinguishable from [ANSWER]
['Q471788', 'P1533', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q82799 . resource:Q471788 property:P1533 ?y }
Joseph
Joseph is indistinguishable from Joseph
Joseph
action filter_type
action find
entity Joseph
relation family name identical to this first name
type name
['Joseph', 'family name identical to this first name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:name . resource:Joseph property:family_name_identical_to_this_first_name ?y }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q82799
USER
Which languages are the languages of work for exactly 1 name ?
(c(Q82799),P407,c(Q34770))
action equal
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 1
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:P407 ?q . ?q rdf:type ontology:Q34770 . ?g rdf:type ontology:Q82799 } GROUP BY ?q } . FILTER ( ?o = 1 ) }
action equal
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 1
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:language_of_work_or_name ?q . ?q rdf:type ontology:language . ?g rdf:type ontology:name } GROUP BY ?q } . FILTER ( ?o = 1 ) }
[]
language name
Q56982 Q35308
SYSTEM
Judaeo-Portuguese, Old Irish
Q56982 Q35308
(c(Q82799),P407,c(Q34770))
action equal
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 1
[ANSWERS] are the languages of work for exactly 1 name
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:P407 ?q . ?q rdf:type ontology:Q34770 . ?g rdf:type ontology:Q82799 } GROUP BY ?q } . FILTER ( ?o = 1 ) }
Judaeo-Portuguese Old Irish
Judaeo-Portuguese and Old Irish are the languages of work for exactly 1 name
Judaeo-Portuguese Old Irish
action equal
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 1
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:language_of_work_or_name ?q . ?q rdf:type ontology:language . ?g rdf:type ontology:name } GROUP BY ?q } . FILTER ( ?o = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1279081 Q2307409
P19
Q515
USER
Which cities were Pablo Ricchetti or Eberhard Hofmann born in ?
OR((Q2307409,P19,c(Q515)), (Q1279081,P19,c(Q515)))
action filter_type
action union
action find
entity Q2307409
relation P19
action find
entity Q1279081
relation P19
type Q515
{'OR': [['Q2307409', 'P19', {'concept': 'Q515'}], ['Q1279081', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?m ) { ( resource:Q1279081 ) ( resource:Q2307409 ) } . ?m property:P19 ?x } . ?x rdf:type ontology:Q515 }
Eberhard Hofmann Pablo Ricchetti
action filter_type
action union
action find
entity Pablo Ricchetti
relation place of birth
action find
entity Eberhard Hofmann
relation place of birth
type city
{'OR': [['Pablo Ricchetti', 'place of birth', {'concept': 'city'}], ['Eberhard Hofmann', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?m ) { ( resource:Eberhard_Hofmann ) ( resource:Pablo_Ricchetti ) } . ?m property:place_of_birth ?x } . ?x rdf:type ontology:city }
[]
city
Q1486 Q2795
SYSTEM
Buenos Aires, Chemnitz
Q1486 Q2795
OR((Q2307409,P19,c(Q515)), (Q1279081,P19,c(Q515)))
action filter_type
action union
action find
entity Q2307409
relation P19
action find
entity Q1279081
relation P19
type Q515
Pablo Ricchetti or Eberhard Hofmann were born in [ANSWERS]
{'OR': [['Q2307409', 'P19', {'concept': 'Q515'}], ['Q1279081', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?m ) { ( resource:Q1279081 ) ( resource:Q2307409 ) } . ?m property:P19 ?x } . ?x rdf:type ontology:Q515 }
Buenos Aires Chemnitz
Pablo Ricchetti or Eberhard Hofmann were born in Buenos Aires and Chemnitz
Buenos Aires Chemnitz
action filter_type
action union
action find
entity Pablo Ricchetti
relation place of birth
action find
entity Eberhard Hofmann
relation place of birth
type city
{'OR': [['Pablo Ricchetti', 'place of birth', {'concept': 'city'}], ['Eberhard Hofmann', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?m ) { ( resource:Eberhard_Hofmann ) ( resource:Pablo_Ricchetti ) } . ?m property:place_of_birth ?x } . ?x rdf:type ontology:city }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P1427
Q515 Q31629 Q22348500
USER
Which cities do more number of types of sport or cycling race classes originate from than that city ?
(c(Q31629)|c(Q22348500),P1427,c(Q515))
[[{'concept': 'Q31629'}, {'concept': 'Q22348500'}], 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q31629 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q22348500 }
[[{'concept': 'type of sport'}, {'concept': 'cycling race class defined by the International Cycling Union'}], 'start point', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:type_of_sport . ?y rdf:type ontology:city . ?x rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union }
[]
city type of sport cycling race class defined by the International Cycling Union
Comparative|More/Less|Mult. entity type|Clarification
Q2795
SYSTEM
Did you mean Chemnitz ?
(c(Q31629)|c(Q22348500),P1427,c(Q515))
[ANSWER]
[[{'concept': 'Q31629'}, {'concept': 'Q22348500'}], 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q31629 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q22348500 }
Did you mean Chemnitz ?
Chemnitz
[[{'concept': 'type of sport'}, {'concept': 'cycling race class defined by the International Cycling Union'}], 'start point', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:type_of_sport . ?y rdf:type ontology:city . ?x rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union }
[]
Comparative Reasoning (All)
USER
No, I meant Buenos Aires. Could you tell me the answer for that?
(c(Q31629)|c(Q22348500),P1427,c(Q515))
Q1486
[[{'concept': 'Q31629'}, {'concept': 'Q22348500'}], 'P1427', {'concept': 'Q515'}]
[[{'concept': 'type of sport'}, {'concept': 'cycling race class defined by the International Cycling Union'}], 'start point', {'concept': 'city'}]
[]
Q11736 Q6582 Q9005
SYSTEM
Tianjin, Carcassonne, Brussels
Q682361 Q1863 Q1636 Q9005 Q3859 Q182378 Q6582 Q11736 Q166282 Q3861 Q3826
(c(Q31629)|c(Q22348500),P1427,c(Q515))
[ANSWERS] more number of types of sport or cycling race classes originate from than that city
[[{'concept': 'Q31629'}, {'concept': 'Q22348500'}], 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q31629 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q22348500 }
Uničov Andorra la Vella Antipolo Brussels Kigali Putrajaya Carcassonne Tianjin Alghero Doha Muscat
Tianjin, Carcassonne and Brussels more number of types of sport or cycling race classes originate from than that city
Tianjin Carcassonne Brussels
[[{'concept': 'type of sport'}, {'concept': 'cycling race class defined by the International Cycling Union'}], 'start point', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:type_of_sport . ?y rdf:type ontology:city . ?x rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1486
P206
Q15324
USER
Which body of water is located in the neighbourhood of Buenos Aires ?
(Q1486,P206,c(Q15324))
action filter_type
action find
entity Q1486
relation P206
type Q15324
['Q1486', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?f WHERE { resource:Q1486 property:P206 ?f . ?f rdf:type ontology:Q15324 }
Buenos Aires
action filter_type
action find
entity Buenos Aires
relation located next to body of water
type body of water
['Buenos Aires', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?f WHERE { resource:Buenos_Aires property:located_next_to_body_of_water ?f . ?f rdf:type ontology:body_of_water }
[]
body of water
Q35827
SYSTEM
Río de la Plata
Q35827
(Q1486,P206,c(Q15324))
action filter_type
action find
entity Q1486
relation P206
type Q15324
The [ANSWER] is located in the neighbourhood of Buenos Aires
['Q1486', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?f WHERE { resource:Q1486 property:P206 ?f . ?f rdf:type ontology:Q15324 }
Río de la Plata
The Río de la Plata is located in the neighbourhood of Buenos Aires
Río de la Plata
action filter_type
action find
entity Buenos Aires
relation located next to body of water
type body of water
['Buenos Aires', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?f WHERE { resource:Buenos_Aires property:located_next_to_body_of_water ?f . ?f rdf:type ontology:body_of_water }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q11638910 Q2307409
P19
Q515
USER
Which cities are the places of birth of Pablo Ricchetti or Yoshiki Kondō ?
OR((Q2307409,P19,c(Q515)), (Q11638910,P19,c(Q515)))
action filter_type
action union
action find
entity Q2307409
relation P19
action find
entity Q11638910
relation P19
type Q515
{'OR': [['Q2307409', 'P19', {'concept': 'Q515'}], ['Q11638910', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q11638910 property:P19 ?e } UNION { resource:Q2307409 property:P19 ?e } } . ?e rdf:type ontology:Q515 }
Yoshiki Kondō Pablo Ricchetti
action filter_type
action union
action find
entity Pablo Ricchetti
relation place of birth
action find
entity Yoshiki Kondō
relation place of birth
type city
{'OR': [['Pablo Ricchetti', 'place of birth', {'concept': 'city'}], ['Yoshiki Kondō', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Yoshiki_Kondō property:place_of_birth ?e } UNION { resource:Pablo_Ricchetti property:place_of_birth ?e } } . ?e rdf:type ontology:city }
[]
city
Q1486 Q694154
SYSTEM
Buenos Aires, Moriguchi
Q1486 Q694154
OR((Q2307409,P19,c(Q515)), (Q11638910,P19,c(Q515)))
action filter_type
action union
action find
entity Q2307409
relation P19
action find
entity Q11638910
relation P19
type Q515
[ANSWERS] are the places of birth of Pablo Ricchetti or Yoshiki Kondō
{'OR': [['Q2307409', 'P19', {'concept': 'Q515'}], ['Q11638910', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q11638910 property:P19 ?e } UNION { resource:Q2307409 property:P19 ?e } } . ?e rdf:type ontology:Q515 }
Buenos Aires Moriguchi
Buenos Aires and Moriguchi are the places of birth of Pablo Ricchetti or Yoshiki Kondō
Buenos Aires Moriguchi
action filter_type
action union
action find
entity Pablo Ricchetti
relation place of birth
action find
entity Yoshiki Kondō
relation place of birth
type city
{'OR': [['Pablo Ricchetti', 'place of birth', {'concept': 'city'}], ['Yoshiki Kondō', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Yoshiki_Kondō property:place_of_birth ?e } UNION { resource:Pablo_Ricchetti property:place_of_birth ?e } } . ?e rdf:type ontology:city }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P1427
Q515 Q878123 Q31629
USER
How many cities are the starting points of more number of racings and types of sport than that city ?
(c(Q878123)|c(Q31629),P1427,c(Q515))
[[{'concept': 'Q878123'}, {'concept': 'Q31629'}], 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q878123 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q31629 }
[[{'concept': 'racing'}, {'concept': 'type of sport'}], 'start point', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:racing . ?y rdf:type ontology:city . ?x rdf:type ontology:type_of_sport }
[]
city racing type of sport
Comparative|Count over More/Less|Mult. entity type|Clarification
Q694154
SYSTEM
Did you mean Moriguchi ?
(c(Q878123)|c(Q31629),P1427,c(Q515))
[ANSWER]
[[{'concept': 'Q878123'}, {'concept': 'Q31629'}], 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q878123 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q31629 }
Did you mean Moriguchi ?
Moriguchi
[[{'concept': 'racing'}, {'concept': 'type of sport'}], 'start point', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:racing . ?y rdf:type ontology:city . ?x rdf:type ontology:type_of_sport }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Buenos Aires. Could you tell me the answer for that?
(c(Q878123)|c(Q31629),P1427,c(Q515))
Q1486
[[{'concept': 'Q878123'}, {'concept': 'Q31629'}], 'P1427', {'concept': 'Q515'}]
[[{'concept': 'racing'}, {'concept': 'type of sport'}], 'start point', {'concept': 'city'}]
[]
SYSTEM
13
Q23482 Q1863 Q197922 Q6602 Q182378 Q6582 Q533157 Q488869 Q3046 Q456 Q3861 Q69060 Q3826
(c(Q878123)|c(Q31629),P1427,c(Q515))
[ANSWER]
[[{'concept': 'Q878123'}, {'concept': 'Q31629'}], 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q878123 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q31629 }
Marseille Andorra la Vella Zhongwei Strasbourg Putrajaya Carcassonne Tianshui Benalmádena Pforzheim Lyon Doha Xining Muscat
13
[[{'concept': 'racing'}, {'concept': 'type of sport'}], 'start point', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:racing . ?y rdf:type ontology:city . ?x rdf:type ontology:type_of_sport }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q15324 Q1267889 Q515
USER
Which cities are located next to around 2 bodies of water and waterways ?
(c(Q515),P206,c(Q15324)|c(Q1267889))
action approx
action union
action find_tuple_counts
relation P206
type Q515
type Q15324
action find_tuple_counts
relation P206
type Q515
type Q1267889
value 2
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?k ) WHERE { ?t rdf:type ?a . VALUES ( ?a ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } } GROUP BY ?q } . FILTER ( ?k = 2 ) }
action approx
action union
action find_tuple_counts
relation located next to body of water
type city
type body of water
action find_tuple_counts
relation located next to body of water
type city
type waterway
value 2
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?k ) WHERE { ?t rdf:type ?a . VALUES ( ?a ) { ( ontology:body_of_water ) ( ontology:waterway ) } } GROUP BY ?q } . FILTER ( ?k = 2 ) }
[]
body of water waterway city
Q1410
SYSTEM
Gibraltar
Q1410
(c(Q515),P206,c(Q15324)|c(Q1267889))
action approx
action union
action find_tuple_counts
relation P206
type Q515
type Q15324
action find_tuple_counts
relation P206
type Q515
type Q1267889
value 2
[ANSWER] is located next to around 2 bodies of water and waterways
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?k ) WHERE { ?t rdf:type ?a . VALUES ( ?a ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } } GROUP BY ?q } . FILTER ( ?k = 2 ) }
Gibraltar
Gibraltar is located next to around 2 bodies of water and waterways
Gibraltar
action approx
action union
action find_tuple_counts
relation located next to body of water
type city
type body of water
action find_tuple_counts
relation located next to body of water
type city
type waterway
value 2
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?k ) WHERE { ?t rdf:type ?a . VALUES ( ?a ) { ( ontology:body_of_water ) ( ontology:waterway ) } } GROUP BY ?q } . FILTER ( ?k = 2 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P163
Q17335294 Q14660 Q515
USER
How many cities are associated with greater number of coats of arms or flags than that city ?
(c(Q515),P163,c(Q17335294)|c(Q14660))
action count
action greater
action union
action find_tuple_counts
relation P163
type Q515
type Q17335294
action find_tuple_counts
relation P163
type Q515
type Q14660
action count
action filter_multi_types
action find
entity Q1410
relation P163
type Q17335294
type Q14660
[{'concept': 'Q515'}, 'P163', [{'concept': 'Q17335294'}, {'concept': 'Q14660'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Q1410 property:P163 ?g . { VALUES ( ?r ) { ( ontology:Q17335294 ) ( ontology:Q14660 ) } . ?g rdf:type ?r } } } . FILTER ( ?h > ?k ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) ?p WHERE { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:Q14660 ) ( ontology:Q17335294 ) } } GROUP BY ?p } }
action count
action greater
action union
action find_tuple_counts
relation flag
type city
type flag or coat of arms
action find_tuple_counts
relation flag
type city
type flag
action count
action filter_multi_types
action find
entity Gibraltar
relation flag
type flag or coat of arms
type flag
[{'concept': 'city'}, 'flag', [{'concept': 'flag or coat of arms'}, {'concept': 'flag'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Gibraltar property:flag ?g . { VALUES ( ?r ) { ( ontology:flag_or_coat_of_arms ) ( ontology:flag ) } . ?g rdf:type ?r } } } . FILTER ( ?h > ?k ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) ?p WHERE { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:flag ) ( ontology:flag_or_coat_of_arms ) } } GROUP BY ?p } }
[]
flag or coat of arms flag city
SYSTEM
14
Q43196 Q1410 Q612815 Q19689 Q235 Q1953 Q1209 Q1865 Q23768 Q3926 Q1486 Q1773 Q157835 Q2135
(c(Q515),P163,c(Q17335294)|c(Q14660))
action count
action greater
action union
action find_tuple_counts
relation P163
type Q515
type Q17335294
action find_tuple_counts
relation P163
type Q515
type Q14660
action count
action filter_multi_types
action find
entity Q1410
relation P163
type Q17335294
type Q14660
[ANSWER]
[{'concept': 'Q515'}, 'P163', [{'concept': 'Q17335294'}, {'concept': 'Q14660'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Q1410 property:P163 ?g . { VALUES ( ?r ) { ( ontology:Q17335294 ) ( ontology:Q14660 ) } . ?g rdf:type ?r } } } . FILTER ( ?h > ?k ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) ?p WHERE { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:Q14660 ) ( ontology:Q17335294 ) } } GROUP BY ?p } }
Cincinnati Gibraltar Garachico Tirana Monaco Yerevan Free Hanseatic City of Bremen Kuala Lumpur Las Vegas Pretoria Buenos Aires Riga Zaporizhzhya Winnipeg
14
action count
action greater
action union
action find_tuple_counts
relation flag
type city
type flag or coat of arms
action find_tuple_counts
relation flag
type city
type flag
action count
action filter_multi_types
action find
entity Gibraltar
relation flag
type flag or coat of arms
type flag
[{'concept': 'city'}, 'flag', [{'concept': 'flag or coat of arms'}, {'concept': 'flag'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Gibraltar property:flag ?g . { VALUES ( ?r ) { ( ontology:flag_or_coat_of_arms ) ( ontology:flag ) } . ?g rdf:type ?r } } } . FILTER ( ?h > ?k ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) ?p WHERE { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:flag ) ( ontology:flag_or_coat_of_arms ) } } GROUP BY ?p } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P190
Q515 Q1048835
USER
Which political territories are sister town of around 1 city ?
(c(Q1048835),P190,c(Q515))
action approx
action find_tuple_counts
relation P190
type Q1048835
type Q515
value 1
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?z ) WHERE { ?l property:P190 ?h . ?l rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q515 } GROUP BY ?l } . FILTER ( ?z = 1 ) }
action approx
action find_tuple_counts
relation sister city
type political territorial entity
type city
value 1
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?z ) WHERE { ?l property:sister_city ?h . ?l rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:city } GROUP BY ?l } . FILTER ( ?z = 1 ) }
[]
city political territorial entity
Q5826 Q615722 Q240
SYSTEM
Xi'an, Santa Fe, Brussels
Q926713 Q433632 Q164867 Q4970 Q193780 Q478818 Q180981 Q15174 Q489839 Q840373 Q170322 Q42956 Q189848 Q1917834 Q572800 Q615722 Q696797 Q488555 Q5978 Q825883 Q11720 Q12534 Q353618 Q42780 Q5783 Q77433 Q318314 Q5826 Q240 Q201149 Q68744 Q714613 Q47593
(c(Q1048835),P190,c(Q515))
action approx
action find_tuple_counts
relation P190
type Q1048835
type Q515
value 1
[ANSWERS] are sister town of around 1 city
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?z ) WHERE { ?l property:P190 ?h . ?l rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q515 } GROUP BY ?l } . FILTER ( ?z = 1 ) }
Parintins Santa Cruz de La Palma Rügen Hangzhou Almuñécar São José dos Pinhais Kirovohrad Oblast Shenzhen Torrejón de Ardoz Valdemoro Qingdao Harbin Guernica Albaida Alcañiz Santa Fe Balaguer Baeza Hildesheim Valls Shenyang Sant Pol de Mar Adeje Ningbo Andalusia Leganés Ipatinga Xi'an Brussels Fife Xiamen Serne Belém
Xi'an, Santa Fe and Brussels are sister town of around 1 city
Xi'an Santa Fe Brussels
action approx
action find_tuple_counts
relation sister city
type political territorial entity
type city
value 1
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?z ) WHERE { ?l property:sister_city ?h . ?l rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:city } GROUP BY ?l } . FILTER ( ?z = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P282
Q8192 Q9779 Q34770
USER
Which languages utilizes around 2 writing systems or alphabets as the writing system ?
(c(Q34770),P282,c(Q8192)|c(Q9779))
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
value 2
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) ?s WHERE { VALUES ( ?y ) { ( ontology:Q8192 ) ( ontology:Q9779 ) } . ?c rdf:type ?y } GROUP BY ?s } . FILTER ( ?u = 2 ) }
action approx
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
value 2
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) ?s WHERE { VALUES ( ?y ) { ( ontology:writing_system ) ( ontology:alphabet ) } . ?c rdf:type ?y } GROUP BY ?s } . FILTER ( ?u = 2 ) }
[]
writing system alphabet language
Q182695
SYSTEM
Late Old Japanese
Q182695
(c(Q34770),P282,c(Q8192)|c(Q9779))
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
value 2
[ANSWER] utilizes around 2 writing systems or alphabets as the writing system
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) ?s WHERE { VALUES ( ?y ) { ( ontology:Q8192 ) ( ontology:Q9779 ) } . ?c rdf:type ?y } GROUP BY ?s } . FILTER ( ?u = 2 ) }
Late Old Japanese
Late Old Japanese utilizes around 2 writing systems or alphabets as the writing system
Late Old Japanese
action approx
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
value 2
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) ?s WHERE { VALUES ( ?y ) { ( ontology:writing_system ) ( ontology:alphabet ) } . ?c rdf:type ?y } GROUP BY ?s } . FILTER ( ?u = 2 ) }
[]