Simple Question (Direct)
Simple Question
Q3453990
P21
Q290
USER
What is the sex of Ryszard Ostrowski ?
(Q3453990,P21,c(Q290))
action filter_type
action find
entity Q3453990
relation P21
type Q290
['Q3453990', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q3453990 property:P21 ?p }
Ryszard Ostrowski
action filter_type
action find
entity Ryszard Ostrowski
relation gender
type sex
['Ryszard Ostrowski', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:Ryszard_Ostrowski property:gender ?p }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3453990,P21,c(Q290))
action filter_type
action find
entity Q3453990
relation P21
type Q290
The sex of Ryszard Ostrowski is the [ANSWER]
['Q3453990', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q3453990 property:P21 ?p }
male
The sex of Ryszard Ostrowski is the male
male
action filter_type
action find
entity Ryszard Ostrowski
relation gender
type sex
['Ryszard Ostrowski', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:Ryszard_Ostrowski property:gender ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3453990
P641
Q31629
USER
What was the type of sport that Ryszard Ostrowski was a part of ?
(Q3453990,P641,c(Q31629))
action filter_type
action find
entity Q3453990
relation P641
type Q31629
['Q3453990', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q31629 . resource:Q3453990 property:P641 ?r }
Ryszard Ostrowski
action filter_type
action find
entity Ryszard Ostrowski
relation sport
type type of sport
['Ryszard Ostrowski', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:type_of_sport . resource:Ryszard_Ostrowski property:sport ?r }
[]
type of sport
Q542
SYSTEM
athletics
Q542
(Q3453990,P641,c(Q31629))
action filter_type
action find
entity Q3453990
relation P641
type Q31629
The type of sport that Ryszard Ostrowski was a part of was h [ANSWER]
['Q3453990', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q31629 . resource:Q3453990 property:P641 ?r }
athletics
The type of sport that Ryszard Ostrowski was a part of was h athletics
athletics
action filter_type
action find
entity Ryszard Ostrowski
relation sport
type type of sport
['Ryszard Ostrowski', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:type_of_sport . resource:Ryszard_Ostrowski property:sport ?r }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17386202
Q31629
USER
And also tell me about Nadiia Kotliar?
(Q17386202,P641,c(Q31629))
action filter_type
action find
entity Q17386202
relation P641
type Q31629
['Q17386202', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?p WHERE { resource:Q17386202 property:P641 ?p . ?p rdf:type ontology:Q31629 }
Nadiia Kotliar
action filter_type
action find
entity Nadiia Kotliar
relation sport
type type of sport
['Nadiia Kotliar', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?p WHERE { resource:Nadiia_Kotliar property:sport ?p . ?p rdf:type ontology:type_of_sport }
[]
type of sport
Q1049443
SYSTEM
Acrobatic gymnastics
Q1049443
(Q17386202,P641,c(Q31629))
action filter_type
action find
entity Q17386202
relation P641
type Q31629
[ANSWER]
['Q17386202', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?p WHERE { resource:Q17386202 property:P641 ?p . ?p rdf:type ontology:Q31629 }
Acrobatic gymnastics
Acrobatic gymnastics
action filter_type
action find
entity Nadiia Kotliar
relation sport
type type of sport
['Nadiia Kotliar', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?p WHERE { resource:Nadiia_Kotliar property:sport ?p . ?p rdf:type ontology:type_of_sport }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P641
Q31629 Q12973014 Q500834
USER
How many types of sport were atmost 8 sports teams or tournaments a part of ?
(c(Q12973014)|c(Q500834),P641,c(Q31629))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P641
type Q31629
type Q12973014
action find_reverse_tuple_counts
relation P641
type Q31629
type Q500834
value 8
[[{'concept': 'Q12973014'}, {'concept': 'Q500834'}], 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?p ) WHERE { { ?t rdf:type ontology:Q31629 . ?o rdf:type ontology:Q500834 . ?o property:P641 ?t } UNION { ?o property:P641 ?t . ?t rdf:type ontology:Q31629 . ?o rdf:type ontology:Q12973014 } } GROUP BY ?t } . FILTER ( ?p <= 8 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation sport
type type of sport
type sports team
action find_reverse_tuple_counts
relation sport
type type of sport
type tournament
value 8
[[{'concept': 'sports team'}, {'concept': 'tournament'}], 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?p ) WHERE { { ?t rdf:type ontology:type_of_sport . ?o rdf:type ontology:tournament . ?o property:sport ?t } UNION { ?o property:sport ?t . ?t rdf:type ontology:type_of_sport . ?o rdf:type ontology:sports_team } } GROUP BY ?t } . FILTER ( ?p <= 8 ) }
[]
type of sport sports team tournament
SYSTEM
80
Q271008 Q637186 Q170004 Q1666862 Q1154336 Q243264 Q472827 Q10980 Q217108 Q164731 Q11706688 Q14085739 Q631004 Q672066 Q1293 Q29358 Q211155 Q191691 Q3817372 Q166788 Q326827 Q178131 Q187916 Q1320458 Q215184 Q1031445 Q219554 Q32485 Q706199 Q919072 Q216613 Q207238 Q2094083 Q675770 Q692853 Q189472 Q180692 Q327223 Q165704 Q1049443 Q2328286 Q2164355 Q917562 Q164761 Q1798044 Q1209037 Q179687 Q1707432 Q352749 Q272460 Q1075998 Q1141850 Q774176 Q159354 Q1629556 Q40244 Q14554839 Q172809 Q16629853 Q520611 Q335638 Q1423069 Q465014 Q186222 Q2261949 Q11020 Q453778 Q163892 Q1156722 Q779272 Q273285 Q50620 Q31987 Q2891117 Q179226 Q7735 Q428242 Q48890 Q162883 Q5300110
(c(Q12973014)|c(Q500834),P641,c(Q31629))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P641
type Q31629
type Q12973014
action find_reverse_tuple_counts
relation P641
type Q31629
type Q500834
value 8
[ANSWER]
[[{'concept': 'Q12973014'}, {'concept': 'Q500834'}], 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?p ) WHERE { { ?t rdf:type ontology:Q31629 . ?o rdf:type ontology:Q500834 . ?o property:P641 ?t } UNION { ?o property:P641 ?t . ?t rdf:type ontology:Q31629 . ?o rdf:type ontology:Q12973014 } } GROUP BY ?t } . FILTER ( ?p <= 8 ) }
800 metres grass skiing 110 metres hurdles International rules football rock climbing heptathlon waterskiing triathlon airsoft 100 metres hurdles sprinting sailing open water swimming downhill mountain biking draughts orienteering 200 metres 1500 metres beach run biathlon artistic gymnastics snowboarding horse racing Ice yachting bicycle motocross cross-country cycling kite surfing modern pentathlon nine-pin bowling sporting clays Nordic skiing rafting kayaking stadion Flag football freestyle skiing synchronized swimming freestyle wrestling high jump Acrobatic gymnastics skeet shooting roller sport carom billiards 100 metres Olympic skeet Modern competitive archery cross-country skiing roller skating sprint Pilates ski mountaineering canoe racing Keirin rowing 1000 metres marathon competitive fencing ten-pin bowling Mixed Doubles mountain biking cyclo-cross canoe camping trampolining alpine skiing para cycling pool Roller skiing 10,000 metres Sport aerobics ice skating luge Telemark skiing freestyle swimming dragon boat sport equestrianism diving ski-orienteering college basketball free climbing double trap
80
action count
action atmost
action union
action find_reverse_tuple_counts
relation sport
type type of sport
type sports team
action find_reverse_tuple_counts
relation sport
type type of sport
type tournament
value 8
[[{'concept': 'sports team'}, {'concept': 'tournament'}], 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?p ) WHERE { { ?t rdf:type ontology:type_of_sport . ?o rdf:type ontology:tournament . ?o property:sport ?t } UNION { ?o property:sport ?t . ?t rdf:type ontology:type_of_sport . ?o rdf:type ontology:sports_team } } GROUP BY ?t } . FILTER ( ?p <= 8 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q303066
P1444
Q486972 Q31629
USER
Which human settlements do more number of types of sport finally stop at than Aars ?
(c(Q31629),P1444,c(Q486972))
action greater
action find_reverse_tuple_counts
relation P1444
type Q486972
type Q31629
action count
action filter_type
action find
entity Q303066
relation P1444
type Q486972
[{'concept': 'Q31629'}, 'P1444', {'concept': 'Q486972'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?u ) WHERE { ?h property:P1444 ?o . ?o rdf:type ontology:Q486972 . ?h rdf:type ontology:Q31629 } GROUP BY ?o } . FILTER ( ?u > ?x ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Q303066 property:P1444 ?s . ?s rdf:type ontology:Q486972 } } }
Aars
action greater
action find_reverse_tuple_counts
relation destination point
type human settlement
type type of sport
action count
action filter_type
action find
entity Aars
relation destination point
type human settlement
[{'concept': 'type of sport'}, 'destination point', {'concept': 'human settlement'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?u ) WHERE { ?h property:destination_point ?o . ?o rdf:type ontology:human_settlement . ?h rdf:type ontology:type_of_sport } GROUP BY ?o } . FILTER ( ?u > ?x ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Aars property:destination_point ?s . ?s rdf:type ontology:human_settlement } } }
[]
human settlement type of sport
Q31487 Q931780 Q108672
SYSTEM
Kraków, Alzira, Dąbrowa Górnicza
Q931780 Q1647457 Q108672 Q81220 Q24123287 Q5351212 Q260320 Q1003408 Q31487 Q525112
(c(Q31629),P1444,c(Q486972))
action greater
action find_reverse_tuple_counts
relation P1444
type Q486972
type Q31629
action count
action filter_type
action find
entity Q303066
relation P1444
type Q486972
[ANSWERS] do more number of types of sport finally stop at than Aars
[{'concept': 'Q31629'}, 'P1444', {'concept': 'Q486972'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?u ) WHERE { ?h property:P1444 ?o . ?o rdf:type ontology:Q486972 . ?h rdf:type ontology:Q31629 } GROUP BY ?o } . FILTER ( ?u > ?x ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Q303066 property:P1444 ?s . ?s rdf:type ontology:Q486972 } } }
Alzira Lesaka Dąbrowa Górnicza Goes Lido di Camaiore El Durazno, Argentina Steyr Bukowina Tatrzańska Kraków La Fría
Kraków, Alzira and Dąbrowa Górnicza do more number of types of sport finally stop at than Aars
Kraków Alzira Dąbrowa Górnicza
action greater
action find_reverse_tuple_counts
relation destination point
type human settlement
type type of sport
action count
action filter_type
action find
entity Aars
relation destination point
type human settlement
[{'concept': 'type of sport'}, 'destination point', {'concept': 'human settlement'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?u ) WHERE { ?h property:destination_point ?o . ?o rdf:type ontology:human_settlement . ?h rdf:type ontology:type_of_sport } GROUP BY ?o } . FILTER ( ?u > ?x ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Aars property:destination_point ?s . ?s rdf:type ontology:human_settlement } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1087543
P1444
Q486972 Q31629
USER
And also tell me about Montecampione?
(c(Q31629),P1444,c(Q486972))
action greater
action find_reverse_tuple_counts
relation P1444
type Q486972
type Q31629
action count
action filter_type
action find
entity Q1087543
relation P1444
type Q486972
[{'concept': 'Q31629'}, 'P1444', {'concept': 'Q486972'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?u ) AS ?s ) WHERE { ?u property:P1444 ?i . ?i rdf:type ontology:Q486972 . ?u rdf:type ontology:Q31629 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Q1087543 property:P1444 ?w . ?w rdf:type ontology:Q486972 } } . FILTER ( ?s > ?q ) }
Montecampione
action greater
action find_reverse_tuple_counts
relation destination point
type human settlement
type type of sport
action count
action filter_type
action find
entity Montecampione
relation destination point
type human settlement
[{'concept': 'type of sport'}, 'destination point', {'concept': 'human settlement'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?u ) AS ?s ) WHERE { ?u property:destination_point ?i . ?i rdf:type ontology:human_settlement . ?u rdf:type ontology:type_of_sport } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Montecampione property:destination_point ?w . ?w rdf:type ontology:human_settlement } } . FILTER ( ?s > ?q ) }
[]
human settlement type of sport
Q31487 Q931780 Q108672
SYSTEM
Kraków, Alzira, Dąbrowa Górnicza
Q931780 Q1647457 Q108672 Q81220 Q24123287 Q5351212 Q260320 Q1003408 Q31487 Q525112
(c(Q31629),P1444,c(Q486972))
action greater
action find_reverse_tuple_counts
relation P1444
type Q486972
type Q31629
action count
action filter_type
action find
entity Q1087543
relation P1444
type Q486972
[ANSWERS]
[{'concept': 'Q31629'}, 'P1444', {'concept': 'Q486972'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?u ) AS ?s ) WHERE { ?u property:P1444 ?i . ?i rdf:type ontology:Q486972 . ?u rdf:type ontology:Q31629 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Q1087543 property:P1444 ?w . ?w rdf:type ontology:Q486972 } } . FILTER ( ?s > ?q ) }
Alzira Lesaka Dąbrowa Górnicza Goes Lido di Camaiore El Durazno, Argentina Steyr Bukowina Tatrzańska Kraków La Fría
Kraków Alzira Dąbrowa Górnicza
action greater
action find_reverse_tuple_counts
relation destination point
type human settlement
type type of sport
action count
action filter_type
action find
entity Montecampione
relation destination point
type human settlement
[{'concept': 'type of sport'}, 'destination point', {'concept': 'human settlement'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?u ) AS ?s ) WHERE { ?u property:destination_point ?i . ?i rdf:type ontology:human_settlement . ?u rdf:type ontology:type_of_sport } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Montecampione property:destination_point ?w . ?w rdf:type ontology:human_settlement } } . FILTER ( ?s > ?q ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q38022 Q108672
P190
Q515
USER
Which cities are twin towns of Dąbrowa Górnicza or St. Louis ?
OR((Q108672,P190,c(Q515)), (Q38022,P190,c(Q515)))
action filter_type
action union
action find
entity Q108672
relation P190
action find
entity Q38022
relation P190
type Q515
{'OR': [['Q108672', 'P190', {'concept': 'Q515'}], ['Q38022', 'P190', {'concept': 'Q515'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q108672 property:P190 ?c } UNION { resource:Q38022 property:P190 ?c } } . ?c rdf:type ontology:Q515 }
St. Louis Dąbrowa Górnicza
action filter_type
action union
action find
entity Dąbrowa Górnicza
relation sister city
action find
entity St. Louis
relation sister city
type city
{'OR': [['Dąbrowa Górnicza', 'sister city', {'concept': 'city'}], ['St. Louis', 'sister city', {'concept': 'city'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Dąbrowa_Górnicza property:sister_city ?c } UNION { resource:St._Louis property:sister_city ?c } } . ?c rdf:type ontology:city }
[]
city
Q10393 Q456 Q1019371 Q16666 Q846338
SYSTEM
Bogor, Lyon, Studénka, Nanjing, Suwa
Q10393 Q456 Q1019371 Q16666 Q846338
OR((Q108672,P190,c(Q515)), (Q38022,P190,c(Q515)))
action filter_type
action union
action find
entity Q108672
relation P190
action find
entity Q38022
relation P190
type Q515
[ANSWERS] are twin towns of Dąbrowa Górnicza or St. Louis
{'OR': [['Q108672', 'P190', {'concept': 'Q515'}], ['Q38022', 'P190', {'concept': 'Q515'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q108672 property:P190 ?c } UNION { resource:Q38022 property:P190 ?c } } . ?c rdf:type ontology:Q515 }
Bogor Lyon Studénka Nanjing Suwa
Bogor, Lyon, Studénka, Nanjing and Suwa are twin towns of Dąbrowa Górnicza or St. Louis
Bogor Lyon Studénka Nanjing Suwa
action filter_type
action union
action find
entity Dąbrowa Górnicza
relation sister city
action find
entity St. Louis
relation sister city
type city
{'OR': [['Dąbrowa Górnicza', 'sister city', {'concept': 'city'}], ['St. Louis', 'sister city', {'concept': 'city'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Dąbrowa_Górnicza property:sister_city ?c } UNION { resource:St._Louis property:sister_city ?c } } . ?c rdf:type ontology:city }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P1427
Q515 Q22348500 Q31629
USER
How many cities gives the origination point of more number of cycling race classes and types of sport than that city ?
(c(Q22348500)|c(Q31629),P1427,c(Q515))
[[{'concept': 'Q22348500'}, {'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:Q22348500 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q31629 }
[[{'concept': 'cycling race class defined by the International Cycling Union'}, {'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:cycling_race_class_defined_by_the_International_Cycling_Union . ?y rdf:type ontology:city . ?x rdf:type ontology:type_of_sport }
[]
city cycling race class defined by the International Cycling Union type of sport
Comparative|Count over More/Less|Mult. entity type|Clarification
Q1019371
SYSTEM
Did you mean Studénka ?
(c(Q22348500)|c(Q31629),P1427,c(Q515))
[ANSWER]
[[{'concept': 'Q22348500'}, {'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:Q22348500 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q31629 }
Did you mean Studénka ?
Studénka
[[{'concept': 'cycling race class defined by the International Cycling Union'}, {'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:cycling_race_class_defined_by_the_International_Cycling_Union . ?y rdf:type ontology:city . ?x rdf:type ontology:type_of_sport }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Lyon. Could you tell me the answer for that?
(c(Q22348500)|c(Q31629),P1427,c(Q515))
Q456
[[{'concept': 'Q22348500'}, {'concept': 'Q31629'}], 'P1427', {'concept': 'Q515'}]
[[{'concept': 'cycling race class defined by the International Cycling Union'}, {'concept': 'type of sport'}], 'start point', {'concept': 'city'}]
[]
SYSTEM
11
Q682361 Q1863 Q1636 Q9005 Q3859 Q182378 Q6582 Q11736 Q166282 Q3861 Q3826
(c(Q22348500)|c(Q31629),P1427,c(Q515))
[ANSWER]
[[{'concept': 'Q22348500'}, {'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:Q22348500 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q31629 }
Uničov Andorra la Vella Antipolo Brussels Kigali Putrajaya Carcassonne Tianjin Alghero Doha Muscat
11
[[{'concept': 'cycling race class defined by the International Cycling Union'}, {'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:cycling_race_class_defined_by_the_International_Cycling_Union . ?y rdf:type ontology:city . ?x rdf:type ontology:type_of_sport }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P190
Q515 Q515
USER
Which cities are twin city of atleast 3 cities ?
(c(Q515),P190,c(Q515))
action atleast
action find_tuple_counts
relation P190
type Q515
type Q515
value 3
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?n >= 3 ) . { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?n ) WHERE { ?q rdf:type ontology:Q515 . ?k rdf:type ontology:Q515 . ?q property:P190 ?k } GROUP BY ?q } }
action atleast
action find_tuple_counts
relation sister city
type city
type city
value 3
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?n >= 3 ) . { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?n ) WHERE { ?q rdf:type ontology:city . ?k rdf:type ontology:city . ?q property:sister_city ?k } GROUP BY ?q } }
[]
city city
Q1486 Q1773 Q1899
SYSTEM
Buenos Aires, Riga, Kyiv
Q23430 Q3572 Q11736 Q837968 Q20934 Q57958 Q11462 Q23482 Q16520 Q19689 Q1899 Q1486 Q17042 Q1461 Q198370 Q8684 Q837157 Q8652 Q19660 Q200267 Q2844 Q533078 Q9005 Q2773 Q205922 Q1773 Q2079 Q252061 Q166829 Q267708 Q1508 Q11194 Q11725 Q2207 Q851056 Q42622 Q839796 Q2887 Q456 Q3616 Q1953
(c(Q515),P190,c(Q515))
action atleast
action find_tuple_counts
relation P190
type Q515
type Q515
value 3
[ANSWERS] are twin city of atleast 3 cities
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?n >= 3 ) . { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?n ) WHERE { ?q rdf:type ontology:Q515 . ?k rdf:type ontology:Q515 . ?q property:P190 ?k } GROUP BY ?q } }
Ulaanbaatar Tunis Tianjin Băile Tușnad Incheon Zhenjiang Surabaya Marseille Busan Tirana Kyiv Buenos Aires Oakland Manila Zibo Seoul Covasna Miami Bucharest Kamakura Brasília Baraolt Brussels Braunschweig Qiqihar Riga Leipzig Valea lui Mihai Miercurea Nirajului Sovata Makati Sarajevo Chongqing Naga Cristuru Secuiesc Suzhou Borsec Santiago Lyon Tehran Yerevan
Buenos Aires, Riga and Kyiv are twin city of atleast 3 cities
Buenos Aires Riga Kyiv
action atleast
action find_tuple_counts
relation sister city
type city
type city
value 3
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?n >= 3 ) . { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?n ) WHERE { ?q rdf:type ontology:city . ?k rdf:type ontology:city . ?q property:sister_city ?k } GROUP BY ?q } }
[]