Simple Question (Direct)
Simple Question
Q1030708
P19
Q515
USER
Which city is the birthplace of Akio Ota ?
(Q1030708,P19,c(Q515))
action filter_type
action find
entity Q1030708
relation P19
type Q515
['Q1030708', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { resource:Q1030708 property:P19 ?q . ?q rdf:type ontology:Q515 }
Akio Ota
action filter_type
action find
entity Akio Ota
relation place of birth
type city
['Akio Ota', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { resource:Akio_Ota property:place_of_birth ?q . ?q rdf:type ontology:city }
[]
city
Q305640
SYSTEM
Abashiri
Q305640
(Q1030708,P19,c(Q515))
action filter_type
action find
entity Q1030708
relation P19
type Q515
Ri [ANSWER] the birthplace of Akio Ota
['Q1030708', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { resource:Q1030708 property:P19 ?q . ?q rdf:type ontology:Q515 }
Abashiri
Ri Abashiri the birthplace of Akio Ota
Abashiri
action filter_type
action find
entity Akio Ota
relation place of birth
type city
['Akio Ota', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { resource:Akio_Ota property:place_of_birth ?q . ?q rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q305640
P20
Q502895
USER
Which person has that city as place of death ?
(c(Q502895),P20,Q305640)
action filter_type
action find_reverse
entity Q305640
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q305640']
SELECT DISTINCT ?k WHERE { ?k property:P20 resource:Q305640 . ?k rdf:type ontology:Q502895 }
Abashiri
action filter_type
action find_reverse
entity Abashiri
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Abashiri']
SELECT DISTINCT ?k WHERE { ?k property:place_of_death resource:Abashiri . ?k rdf:type ontology:common_name }
[]
common name
Q2619494
SYSTEM
Branko Vukelić
Q2619494
(c(Q502895),P20,Q305640)
action filter_type
action find_reverse
entity Q305640
relation P20
type Q502895
[ANSWER] has that city as place of death
[{'concept': 'Q502895'}, 'P20', 'Q305640']
SELECT DISTINCT ?k WHERE { ?k property:P20 resource:Q305640 . ?k rdf:type ontology:Q502895 }
Branko Vukelić
Branko Vukelić has that city as place of death
Branko Vukelić
action filter_type
action find_reverse
entity Abashiri
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Abashiri']
SELECT DISTINCT ?k WHERE { ?k property:place_of_death resource:Abashiri . ?k rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q2619494 Q5018971 Q63049
P551
Q56061
USER
Does that person have residence at Jowzestan, Chaharmahal and Bakhtiari and Abadan ?
(Q2619494,P551,Q5018971) (Q2619494,P551,Q63049)
action is_in
entity Q2619494
action intersection
action find_reverse
entity Q5018971
relation P551
action find_reverse
entity Q63049
relation P551
['Q2619494', 'P551', 'Q5018971'] ['Q2619494', 'P551', 'Q63049']
ASK WHERE { resource:Q2619494 property:P551 resource:Q5018971 . resource:Q2619494 property:P551 resource:Q63049 }
Branko Vukelić Jowzestan, Chaharmahal and Bakhtiari Abadan
action is_in
entity Branko Vukelić
action intersection
action find_reverse
entity Jowzestan, Chaharmahal and Bakhtiari
relation residence
action find_reverse
entity Abadan
relation residence
['Branko Vukelić', 'residence', 'Jowzestan, Chaharmahal and Bakhtiari'] ['Branko Vukelić', 'residence', 'Abadan']
ASK WHERE { resource:Branko_Vukelić property:residence resource:Jowzestan,_Chaharmahal_and_Bakhtiari . resource:Branko_Vukelić property:residence resource:Abadan }
[]
administrative territorial entity
SYSTEM
NO
(Q2619494,P551,Q5018971) (Q2619494,P551,Q63049)
action is_in
entity Q2619494
action intersection
action find_reverse
entity Q5018971
relation P551
action find_reverse
entity Q63049
relation P551
[ANSWER]
['Q2619494', 'P551', 'Q5018971'] ['Q2619494', 'P551', 'Q63049']
ASK WHERE { resource:Q2619494 property:P551 resource:Q5018971 . resource:Q2619494 property:P551 resource:Q63049 }
No
action is_in
entity Branko Vukelić
action intersection
action find_reverse
entity Jowzestan, Chaharmahal and Bakhtiari
relation residence
action find_reverse
entity Abadan
relation residence
['Branko Vukelić', 'residence', 'Jowzestan, Chaharmahal and Bakhtiari'] ['Branko Vukelić', 'residence', 'Abadan']
ASK WHERE { resource:Branko_Vukelić property:residence resource:Jowzestan,_Chaharmahal_and_Bakhtiari . resource:Branko_Vukelić property:residence resource:Abadan }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q3235151
P725
Q502895 Q15961987
USER
How many television genres did greater number of people do the dubbing for than VeggieTales ?
(c(Q15961987),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q15961987
type Q502895
action count
action filter_type
action find
entity Q3235151
relation P725
type Q15961987
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?u ) WHERE { ?g property:P725 ?n . ?g rdf:type ontology:Q15961987 . ?n rdf:type ontology:Q502895 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:Q3235151 property:P725 ?q . ?q rdf:type ontology:Q15961987 } } . FILTER ( ?u > ?o ) }
VeggieTales
action count
action greater
action find_tuple_counts
relation voice actor
type television genre
type common name
action count
action filter_type
action find
entity VeggieTales
relation voice actor
type television genre
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?u ) WHERE { ?g property:voice_actor ?n . ?g rdf:type ontology:television_genre . ?n rdf:type ontology:common_name } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:VeggieTales property:voice_actor ?q . ?q rdf:type ontology:television_genre } } . FILTER ( ?u > ?o ) }
[]
common name television genre
SYSTEM
9
Q24034511 Q11296848 Q7615342 Q22773153 Q18790 Q53093 Q5415 Q886 Q2750339
(c(Q15961987),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q15961987
type Q502895
action count
action filter_type
action find
entity Q3235151
relation P725
type Q15961987
[ANSWER]
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?u ) WHERE { ?g property:P725 ?n . ?g rdf:type ontology:Q15961987 . ?n rdf:type ontology:Q502895 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:Q3235151 property:P725 ?q . ?q rdf:type ontology:Q15961987 } } . FILTER ( ?u > ?o ) }
Voltron: Legendary Defender Kiteretsu Daihyakka Steven Universe Milo Murphy's Law The Legend of Korra Adventure Time My Little Pony: Friendship Is Magic The Simpsons Hellsing Ultimate
9
action count
action greater
action find_tuple_counts
relation voice actor
type television genre
type common name
action count
action filter_type
action find
entity VeggieTales
relation voice actor
type television genre
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?u ) WHERE { ?g property:voice_actor ?n . ?g rdf:type ontology:television_genre . ?n rdf:type ontology:common_name } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:VeggieTales property:voice_actor ?q . ?q rdf:type ontology:television_genre } } . FILTER ( ?u > ?o ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q2619494 Q24450573
P551
Q56061
USER
How many administrative territories did Branko Vukelić or Chloe x Halle reside ?
(Q2619494,P551,c(Q56061)) (Q24450573,P551,c(Q56061))
action count
action union
action filter_type
action find
entity Q2619494
relation P551
type Q56061
action filter_type
action find
entity Q24450573
relation P551
type Q56061
['Q2619494', 'P551', {'concept': 'Q56061'}] ['Q24450573', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { ?q rdf:type ontology:Q56061 . resource:Q24450573 property:P551 ?q } UNION { ?q rdf:type ontology:Q56061 . resource:Q2619494 property:P551 ?q } }
Branko Vukelić Chloe x Halle
action count
action union
action filter_type
action find
entity Branko Vukelić
relation residence
type administrative territorial entity
action filter_type
action find
entity Chloe x Halle
relation residence
type administrative territorial entity
['Branko Vukelić', 'residence', {'concept': 'administrative territorial entity'}] ['Chloe x Halle', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { ?q rdf:type ontology:administrative_territorial_entity . resource:Chloe_x_Halle property:residence ?q } UNION { ?q rdf:type ontology:administrative_territorial_entity . resource:Branko_Vukelić property:residence ?q } }
[]
administrative territorial entity
SYSTEM
2
Q90 Q23556
(Q2619494,P551,c(Q56061)) (Q24450573,P551,c(Q56061))
action count
action union
action filter_type
action find
entity Q2619494
relation P551
type Q56061
action filter_type
action find
entity Q24450573
relation P551
type Q56061
[ANSWER]
['Q2619494', 'P551', {'concept': 'Q56061'}] ['Q24450573', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { ?q rdf:type ontology:Q56061 . resource:Q24450573 property:P551 ?q } UNION { ?q rdf:type ontology:Q56061 . resource:Q2619494 property:P551 ?q } }
Paris Atlanta
2
action count
action union
action filter_type
action find
entity Branko Vukelić
relation residence
type administrative territorial entity
action filter_type
action find
entity Chloe x Halle
relation residence
type administrative territorial entity
['Branko Vukelić', 'residence', {'concept': 'administrative territorial entity'}] ['Chloe x Halle', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { ?q rdf:type ontology:administrative_territorial_entity . resource:Chloe_x_Halle property:residence ?q } UNION { ?q rdf:type ontology:administrative_territorial_entity . resource:Branko_Vukelić property:residence ?q } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2619494
P21
Q290
USER
Which sex does that person possess ?
action filter_type
action find
entity Q2619494
relation P21
type Q290
SELECT DISTINCT ?r WHERE { resource:Q2619494 property:P21 ?r . ?r rdf:type ontology:Q290 }
Branko Vukelić
action filter_type
action find
entity Branko Vukelić
relation gender
type sex
SELECT DISTINCT ?r WHERE { resource:Branko_Vukelić property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
action filter_type
action find
entity Q2619494
relation P21
type Q290
That person possesses a [ANSWER]
SELECT DISTINCT ?r WHERE { resource:Q2619494 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
That person possesses a male
male
action filter_type
action find
entity Branko Vukelić
relation gender
type sex
SELECT DISTINCT ?r WHERE { resource:Branko_Vukelić property:gender ?r . ?r rdf:type ontology:sex }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q646780
P206
Q15324 Q337567 Q515
USER
Which cities are located nearby around the same number of bodies of water and still waterss as Katagami ?
(c(Q515),P206,c(Q15324)|c(Q337567))
action approx
action union
action find_tuple_counts
relation P206
type Q515
type Q15324
action find_tuple_counts
relation P206
type Q515
type Q337567
action count
action filter_multi_types
action find
entity Q646780
relation P206
type Q15324
type Q337567
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) ?m WHERE { { ?m property:P206 ?k . ?m rdf:type ontology:Q515 . ?k rdf:type ontology:Q15324 } UNION { ?m property:P206 ?k . ?m rdf:type ontology:Q515 . ?k rdf:type ontology:Q337567 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { resource:Q646780 property:P206 ?u . { VALUES ( ?n ) { ( ontology:Q15324 ) ( ontology:Q337567 ) } . ?u rdf:type ?n } } } . FILTER ( ?j = ?w ) }
Katagami
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 still waters
action count
action filter_multi_types
action find
entity Katagami
relation located next to body of water
type body of water
type still waters
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) ?m WHERE { { ?m property:located_next_to_body_of_water ?k . ?m rdf:type ontology:city . ?k rdf:type ontology:body_of_water } UNION { ?m property:located_next_to_body_of_water ?k . ?m rdf:type ontology:city . ?k rdf:type ontology:still_waters } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { resource:Katagami property:located_next_to_body_of_water ?u . { VALUES ( ?n ) { ( ontology:body_of_water ) ( ontology:still_waters ) } . ?u rdf:type ?n } } } . FILTER ( ?j = ?w ) }
[]
body of water still waters city
Q1486 Q1773 Q1461
SYSTEM
Buenos Aires, Riga, Manila
Q1410 Q1519 Q1486 Q602903 Q1461 Q217432 Q34261 Q1773 Q819587 Q3958 Q633935 Q7473516 Q1761 Q890122 Q41474 Q4174 Q1209 Q847550 Q646780 Q3857 Q3861
(c(Q515),P206,c(Q15324)|c(Q337567))
action approx
action union
action find_tuple_counts
relation P206
type Q515
type Q15324
action find_tuple_counts
relation P206
type Q515
type Q337567
action count
action filter_multi_types
action find
entity Q646780
relation P206
type Q15324
type Q337567
[ANSWERS] are located nearby around the same number of bodies of water and still waterss as Katagami
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) ?m WHERE { { ?m property:P206 ?k . ?m rdf:type ontology:Q515 . ?k rdf:type ontology:Q15324 } UNION { ?m property:P206 ?k . ?m rdf:type ontology:Q515 . ?k rdf:type ontology:Q337567 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { resource:Q646780 property:P206 ?u . { VALUES ( ?n ) { ( ontology:Q15324 ) ( ontology:Q337567 ) } . ?u rdf:type ?n } } } . FILTER ( ?j = ?w ) }
Gibraltar Abu Dhabi Buenos Aires Yurihonjō Manila Port Harcourt Port-au-Prince Riga Noshiro Neubrandenburg Oga Tokyo Dublin Bolhrad Kingstown Emden Free Hanseatic City of Bremen Nikaho Katagami Wilhelmshaven Doha
Buenos Aires, Riga and Manila are located nearby around the same number of bodies of water and still waterss as Katagami
Buenos Aires Riga Manila
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 still waters
action count
action filter_multi_types
action find
entity Katagami
relation located next to body of water
type body of water
type still waters
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) ?m WHERE { { ?m property:located_next_to_body_of_water ?k . ?m rdf:type ontology:city . ?k rdf:type ontology:body_of_water } UNION { ?m property:located_next_to_body_of_water ?k . ?m rdf:type ontology:city . ?k rdf:type ontology:still_waters } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { resource:Katagami property:located_next_to_body_of_water ?u . { VALUES ( ?n ) { ( ontology:body_of_water ) ( ontology:still_waters ) } . ?u rdf:type ?n } } } . FILTER ( ?j = ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1863
P206
Q15324 Q337567 Q515
USER
And also tell me about Andorra la Vella?
(c(Q515),P206,c(Q15324)|c(Q337567))
action approx
action union
action find_tuple_counts
relation P206
type Q515
type Q15324
action find_tuple_counts
relation P206
type Q515
type Q337567
action count
action filter_multi_types
action find
entity Q1863
relation P206
type Q15324
type Q337567
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) ?r WHERE { { ?r property:P206 ?k . ?r rdf:type ontology:Q515 . ?k rdf:type ontology:Q15324 } UNION { ?r property:P206 ?k . ?k rdf:type ontology:Q337567 . ?r rdf:type ontology:Q515 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { { { ?u rdf:type ontology:Q15324 } UNION { ?u rdf:type ontology:Q337567 } } . resource:Q1863 property:P206 ?u } } . FILTER ( ?f = ?l ) }
Andorra la Vella
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 still waters
action count
action filter_multi_types
action find
entity Andorra la Vella
relation located next to body of water
type body of water
type still waters
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) ?r WHERE { { ?r property:located_next_to_body_of_water ?k . ?r rdf:type ontology:city . ?k rdf:type ontology:body_of_water } UNION { ?r property:located_next_to_body_of_water ?k . ?k rdf:type ontology:still_waters . ?r rdf:type ontology:city } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { { { ?u rdf:type ontology:body_of_water } UNION { ?u rdf:type ontology:still_waters } } . resource:Andorra_la_Vella property:located_next_to_body_of_water ?u } } . FILTER ( ?f = ?l ) }
[]
body of water still waters city
Q1486 Q1773 Q1899
SYSTEM
Buenos Aires, Riga, Kyiv
Q3075 Q1794 Q1863 Q1865 Q1519 Q496499 Q3974 Q846877 Q19689 Q1486 Q2966 Q34217 Q496479 Q602903 Q3004 Q1461 Q488869 Q217432 Q827041 Q3572 Q623549 Q2865 Q4024 Q2978 Q3806 Q2973 Q34261 Q3014 Q1773 Q1844 Q14821 Q819587 Q3958 Q3955 Q23430 Q633272 Q2773 Q612815 Q320943 Q1858 Q320416 Q7473516 Q1761 Q890122 Q4007 Q2706 Q7070 Q3826 Q653545 Q8684 Q270704 Q41474 Q2749 Q3838 Q2833 Q1209 Q23661 Q3751 Q3750 Q3200 Q3126 Q3042 Q157835 Q3046 Q847550 Q3936 Q2936 Q3214 Q2100 Q1533 Q1530 Q1731 Q1953 Q5838 Q7027 Q3994 Q19660 Q11194 Q3915 Q2119 Q3069 Q1720 Q1721 Q329996 Q3904 Q695920 Q2910 Q3861 Q1899 Q2999 Q2844
(c(Q515),P206,c(Q15324)|c(Q337567))
action approx
action union
action find_tuple_counts
relation P206
type Q515
type Q15324
action find_tuple_counts
relation P206
type Q515
type Q337567
action count
action filter_multi_types
action find
entity Q1863
relation P206
type Q15324
type Q337567
[ANSWERS]
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) ?r WHERE { { ?r property:P206 ?k . ?r rdf:type ontology:Q515 . ?k rdf:type ontology:Q15324 } UNION { ?r property:P206 ?k . ?k rdf:type ontology:Q337567 . ?r rdf:type ontology:Q515 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { { { ?u rdf:type ontology:Q15324 } UNION { ?u rdf:type ontology:Q337567 } } . resource:Q1863 property:P206 ?u } } . FILTER ( ?f = ?l ) }
Fürth Frankfurt Andorra la Vella Kuala Lumpur Abu Dhabi Kazuno Landshut Semboku Tirana Buenos Aires Heidelberg Oxford Yokote Yurihonjō Ingolstadt Manila Benalmádena Port Harcourt Beroun Tunis Puerto de la Cruz Kassel Frankfurt (Oder) Regensburg Tübingen Darmstadt Port-au-Prince Wolfsburg Riga Vaduz Coburg Noshiro Neubrandenburg Weimar Ulaanbaatar Yuzawa Braunschweig Garachico Matsudo Hanoi Tartessos Tokyo Dublin Bolhrad Rosenheim Bremerhaven Eisenach Muscat Kita-Akita Seoul Třebíč Kingstown Augsburg Kinshasa Freiburg im Breisgau Free Hanseatic City of Bremen Wellington Praia Gera Salzgitter Erlangen Offenbach am Main Zaporizhzhya Pforzheim Nikaho Bamberg Oldenburg Cottbus Duisburg Caracas Baghdad Dresden Yerevan Kabul Straubing Kempten Bucharest Sarajevo Antananarivo Mannheim Bottrop Mainz Wiesbaden Ōdate Mbabane Daisen Ludwigshafen Doha Kyiv Würzburg Brasília
Buenos Aires Riga Kyiv
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 still waters
action count
action filter_multi_types
action find
entity Andorra la Vella
relation located next to body of water
type body of water
type still waters
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) ?r WHERE { { ?r property:located_next_to_body_of_water ?k . ?r rdf:type ontology:city . ?k rdf:type ontology:body_of_water } UNION { ?r property:located_next_to_body_of_water ?k . ?k rdf:type ontology:still_waters . ?r rdf:type ontology:city } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { { { ?u rdf:type ontology:body_of_water } UNION { ?u rdf:type ontology:still_waters } } . resource:Andorra_la_Vella property:located_next_to_body_of_water ?u } } . FILTER ( ?f = ?l ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q540346
P190
Q56061
USER
Are Waynesboro sister town of those cities ?
(Q540346,P190,Q1486) (Q540346,P190,Q1773) (Q540346,P190,Q1899)
action is_in
entity prev_answer
action find
entity Q540346
relation P190
['Q540346', 'P190', 'Q1486'] ['Q540346', 'P190', 'Q1773'] ['Q540346', 'P190', 'Q1899']
ASK WHERE { resource:Q540346 property:P190 ?b . VALUES ( ?b ) { ( resource:Q3075 ) ( resource:Q1794 ) ( resource:Q1863 ) } }
Waynesboro
action is_in
entity prev_answer
action find
entity Waynesboro
relation sister city
['Waynesboro', 'sister city', 'Buenos Aires'] ['Waynesboro', 'sister city', 'Riga'] ['Waynesboro', 'sister city', 'Kyiv']
ASK WHERE { resource:Waynesboro property:sister_city ?b . VALUES ( ?b ) { ( resource:Fürth ) ( resource:Frankfurt ) ( resource:Andorra_la_Vella ) } }
[]
administrative territorial entity
SYSTEM
NO
(Q540346,P190,Q1486) (Q540346,P190,Q1773) (Q540346,P190,Q1899)
action is_in
entity prev_answer
action find
entity Q540346
relation P190
[ANSWER]
['Q540346', 'P190', 'Q1486'] ['Q540346', 'P190', 'Q1773'] ['Q540346', 'P190', 'Q1899']
ASK WHERE { resource:Q540346 property:P190 ?b . VALUES ( ?b ) { ( resource:Q3075 ) ( resource:Q1794 ) ( resource:Q1863 ) } }
No
action is_in
entity prev_answer
action find
entity Waynesboro
relation sister city
['Waynesboro', 'sister city', 'Buenos Aires'] ['Waynesboro', 'sister city', 'Riga'] ['Waynesboro', 'sister city', 'Kyiv']
ASK WHERE { resource:Waynesboro property:sister_city ?b . VALUES ( ?b ) { ( resource:Fürth ) ( resource:Frankfurt ) ( resource:Andorra_la_Vella ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P36
Q515 Q515 Q7275
USER
Which cities are associated to max number of cities and states as the capital ?
(c(Q515)|c(Q7275),P36,c(Q515))
action argmax
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q515
action find_reverse_tuple_counts
relation P36
type Q515
type Q7275
[[{'concept': 'Q515'}, {'concept': 'Q7275'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?q ) { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?k ) WHERE { { ?a property:P36 ?n . ?n rdf:type ontology:Q515 . ?a rdf:type ontology:Q515 } UNION { ?a property:P36 ?n . ?n rdf:type ontology:Q515 . ?a rdf:type ontology:Q7275 } } GROUP BY ?n } } . { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?o ) WHERE { { ?i property:P36 ?c . ?i rdf:type ontology:Q515 . ?c rdf:type ontology:Q515 } UNION { ?c rdf:type ontology:Q515 . ?i rdf:type ontology:Q7275 . ?i property:P36 ?c } } GROUP BY ?c } . FILTER ( ?o = ?q ) }
action argmax
action union
action find_reverse_tuple_counts
relation capital
type city
type city
action find_reverse_tuple_counts
relation capital
type city
type state
[[{'concept': 'city'}, {'concept': 'state'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?q ) { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?k ) WHERE { { ?a property:capital ?n . ?n rdf:type ontology:city . ?a rdf:type ontology:city } UNION { ?a property:capital ?n . ?n rdf:type ontology:city . ?a rdf:type ontology:state } } GROUP BY ?n } } . { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?o ) WHERE { { ?i property:capital ?c . ?i rdf:type ontology:city . ?c rdf:type ontology:city } UNION { ?c rdf:type ontology:city . ?i rdf:type ontology:state . ?i property:capital ?c } } GROUP BY ?c } . FILTER ( ?o = ?q ) }
[]
city city state
Q5838 Q187136 Q16666
SYSTEM
Kabul, Luoyang, Nanjing
Q5838 Q187136 Q16666
(c(Q515)|c(Q7275),P36,c(Q515))
action argmax
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q515
action find_reverse_tuple_counts
relation P36
type Q515
type Q7275
[ANSWERS] are associated to max number of cities and states as the capital
[[{'concept': 'Q515'}, {'concept': 'Q7275'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?q ) { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?k ) WHERE { { ?a property:P36 ?n . ?n rdf:type ontology:Q515 . ?a rdf:type ontology:Q515 } UNION { ?a property:P36 ?n . ?n rdf:type ontology:Q515 . ?a rdf:type ontology:Q7275 } } GROUP BY ?n } } . { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?o ) WHERE { { ?i property:P36 ?c . ?i rdf:type ontology:Q515 . ?c rdf:type ontology:Q515 } UNION { ?c rdf:type ontology:Q515 . ?i rdf:type ontology:Q7275 . ?i property:P36 ?c } } GROUP BY ?c } . FILTER ( ?o = ?q ) }
Kabul Luoyang Nanjing
Kabul, Luoyang and Nanjing are associated to max number of cities and states as the capital
Kabul Luoyang Nanjing
action argmax
action union
action find_reverse_tuple_counts
relation capital
type city
type city
action find_reverse_tuple_counts
relation capital
type city
type state
[[{'concept': 'city'}, {'concept': 'state'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?q ) { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?k ) WHERE { { ?a property:capital ?n . ?n rdf:type ontology:city . ?a rdf:type ontology:city } UNION { ?a property:capital ?n . ?n rdf:type ontology:city . ?a rdf:type ontology:state } } GROUP BY ?n } } . { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?o ) WHERE { { ?i property:capital ?c . ?i rdf:type ontology:city . ?c rdf:type ontology:city } UNION { ?c rdf:type ontology:city . ?i rdf:type ontology:state . ?i property:capital ?c } } GROUP BY ?c } . FILTER ( ?o = ?q ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1863
P19
Q502895
USER
How many people have location of birth at Andorra la Vella ?
(c(Q502895),P19,Q1863)
action count
action filter_type
action find_reverse
entity Q1863
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q1863']
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { ?q property:P19 resource:Q1863 . ?q rdf:type ontology:Q502895 }
Andorra la Vella
action count
action filter_type
action find_reverse
entity Andorra la Vella
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Andorra la Vella']
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { ?q property:place_of_birth resource:Andorra_la_Vella . ?q rdf:type ontology:common_name }
[]
common name
SYSTEM
62
Q592844 Q1706315 Q1557990 Q3605632 Q1373075 Q1703722 Q1703726 Q21587731 Q3697387 Q7167739 Q654625 Q3105855 Q45331 Q16623596 Q26251633 Q372201 Q3183735 Q9359976 Q950792 Q718275 Q365542 Q2462489 Q3183740 Q983691 Q21001195 Q1892608 Q5921023 Q275912 Q11935090 Q3543972 Q299573 Q19968752 Q937374 Q967614 Q737266 Q1369512 Q462834 Q976321 Q933087 Q1795152 Q1140313 Q4111407 Q11727363 Q1609315 Q359613 Q452908 Q217598 Q933019 Q3351897 Q3860168 Q838490 Q3347391 Q2893282 Q16930804 Q982434 Q2641483 Q526835 Q398974 Q21104557 Q720264 Q2467036 Q1027582
(c(Q502895),P19,Q1863)
action count
action filter_type
action find_reverse
entity Q1863
relation P19
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q1863']
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { ?q property:P19 resource:Q1863 . ?q rdf:type ontology:Q502895 }
Montserrat Pujol Josep Serrano Alain Montwani Adrian Rodrígues Manolo Jiménez Jordi Barra Jordi Rubio Pere Canturri Montanya Cristian Orosa Pere López Agràs Juli Minoves Triquell Gilbert Saboya Sunyé Juli Sánchez Xavier Vieira Miquel Àngel Canturri Montanya Samir Bousenine Jordi Alcobé Font Toni Besolí Emili García Juli Fernández Marc Forné Molné Txema Garcia Jordi Cinca i Mateos Josep Gómes Xavier Espot Zamora Marc García Isak Ferriz Marta Roure Marc Cartes i Ivern Cristina Llovera Laure Soulie Alba López Maria Rosa Ferrer Obiols Ferran Pol Gabi Riera Jordi Escura Mireia Gutiérrez Márcio Vieira Álex Somoza Alexandre Martínez Cristian Martínez Ignasi Villamayor Rozados Joan Verdu Sanchez Ricard Imbernon Óscar Sonejee Iván Lorenzo Jaume Bartumeu Albert Salvadó Lluis Marin Tarroch Moisés San Nicolás Montserrat García Riberaygua Hocine Haciane Quino Colom Luigi San Nicolás Marc Pujol Alex Rodriguez Sophie Dusautoir Bertrand Agusti Pol Max Llovera Marc Bernaus Lluís Claret Joan Tomàs Roca
62
action count
action filter_type
action find_reverse
entity Andorra la Vella
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Andorra la Vella']
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { ?q property:place_of_birth resource:Andorra_la_Vella . ?q rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2619494
P1412
Q34770
USER
Which language can Branko Vukelić read ?
(Q2619494,P1412,c(Q34770))
action filter_type
action find
entity Q2619494
relation P1412
type Q34770
['Q2619494', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { resource:Q2619494 property:P1412 ?t . ?t rdf:type ontology:Q34770 }
Branko Vukelić
action filter_type
action find
entity Branko Vukelić
relation languages spoken, written or signed
type language
['Branko Vukelić', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { resource:Branko_Vukelić property:languages_spoken,_written_or_signed ?t . ?t rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q2619494,P1412,c(Q34770))
action filter_type
action find
entity Q2619494
relation P1412
type Q34770
Branko Vukelić can read in [ANSWER]
['Q2619494', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { resource:Q2619494 property:P1412 ?t . ?t rdf:type ontology:Q34770 }
English
Branko Vukelić can read in English
English
action filter_type
action find
entity Branko Vukelić
relation languages spoken, written or signed
type language
['Branko Vukelić', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { resource:Branko_Vukelić property:languages_spoken,_written_or_signed ?t . ?t rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1860 Q3048461
P361
Q5962346
USER
Is that language a component of Zamucoan languages ?
(Q1860,P361,Q3048461)
action is_in
entity Q3048461
action find
entity Q1860
relation P361
['Q1860', 'P361', 'Q3048461']
ASK WHERE { resource:Q1860 property:P361 resource:Q3048461 }
English Zamucoan languages
action is_in
entity Zamucoan languages
action find
entity English
relation part of
['English', 'part of', 'Zamucoan languages']
ASK WHERE { resource:English property:part_of resource:Zamucoan_languages }
[]
classification scheme
SYSTEM
NO
(Q1860,P361,Q3048461)
action is_in
entity Q3048461
action find
entity Q1860
relation P361
[ANSWER]
['Q1860', 'P361', 'Q3048461']
ASK WHERE { resource:Q1860 property:P361 resource:Q3048461 }
No
action is_in
entity Zamucoan languages
action find
entity English
relation part of
['English', 'part of', 'Zamucoan languages']
ASK WHERE { resource:English property:part_of resource:Zamucoan_languages }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q5838 Q621466
P17
Q15617994
USER
Does Kabul belong to Morschen ?
(Q5838,P17,Q621466)
action is_in
entity Q621466
action find
entity Q5838
relation P17
['Q5838', 'P17', 'Q621466']
ASK WHERE { resource:Q5838 property:P17 resource:Q621466 }
Kabul Morschen
action is_in
entity Morschen
action find
entity Kabul
relation country
['Kabul', 'country', 'Morschen']
ASK WHERE { resource:Kabul property:country resource:Morschen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q5838,P17,Q621466)
action is_in
entity Q621466
action find
entity Q5838
relation P17
[ANSWER]
['Q5838', 'P17', 'Q621466']
ASK WHERE { resource:Q5838 property:P17 resource:Q621466 }
No
action is_in
entity Morschen
action find
entity Kabul
relation country
['Kabul', 'country', 'Morschen']
ASK WHERE { resource:Kabul property:country resource:Morschen }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q67872 Q16666
P47 P190
Q56061
USER
Which administrative territories are twin towns of Nanjing or share border with Castel San Pietro ?
OR((Q16666,P190,c(Q56061)), (Q67872,P47,c(Q56061)))
action filter_type
action union
action find
entity Q16666
relation P190
action find
entity Q67872
relation P47
type Q56061
{'OR': [['Q16666', 'P190', {'concept': 'Q56061'}], ['Q67872', 'P47', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q56061 . { { resource:Q67872 property:P47 ?n } UNION { resource:Q16666 property:P190 ?n } } }
Castel San Pietro Nanjing
action filter_type
action union
action find
entity Nanjing
relation sister city
action find
entity Castel San Pietro
relation shares border with
type administrative territorial entity
{'OR': [['Nanjing', 'sister city', {'concept': 'administrative territorial entity'}], ['Castel San Pietro', 'shares border with', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:administrative_territorial_entity . { { resource:Castel_San_Pietro property:shares_border_with ?n } UNION { resource:Nanjing property:sister_city ?n } } }
[]
administrative territorial entity
Q69041 Q61089 Q67986 Q185632 Q2044 Q38022 Q16557
SYSTEM
Mendrisio, Malacca City, Rovio, Limassol, Florence, St. Louis, Dallas
Q69041 Q61089 Q67986 Q185632 Q2044 Q38022 Q16557
OR((Q16666,P190,c(Q56061)), (Q67872,P47,c(Q56061)))
action filter_type
action union
action find
entity Q16666
relation P190
action find
entity Q67872
relation P47
type Q56061
[ANSWERS] are twin towns of Nanjing or share border with Castel San Pietro
{'OR': [['Q16666', 'P190', {'concept': 'Q56061'}], ['Q67872', 'P47', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q56061 . { { resource:Q67872 property:P47 ?n } UNION { resource:Q16666 property:P190 ?n } } }
Mendrisio Malacca City Rovio Limassol Florence St. Louis Dallas
Mendrisio, Malacca City, Rovio, Limassol, Florence, St. Louis and Dallas are twin towns of Nanjing or share border with Castel San Pietro
Mendrisio Malacca City Rovio Limassol Florence St. Louis Dallas
action filter_type
action union
action find
entity Nanjing
relation sister city
action find
entity Castel San Pietro
relation shares border with
type administrative territorial entity
{'OR': [['Nanjing', 'sister city', {'concept': 'administrative territorial entity'}], ['Castel San Pietro', 'shares border with', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:administrative_territorial_entity . { { resource:Castel_San_Pietro property:shares_border_with ?n } UNION { resource:Nanjing property:sister_city ?n } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P190
Q56061
USER
How many administrative territories are twin cities of that administrative territory ?
(Q185632,P190,c(Q56061))
['Q185632', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q185632 property:P190 ?z . ?z rdf:type ontology:Q56061 }
['Limassol', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Limassol property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q61089
SYSTEM
Did you mean Malacca City ?
(Q69041,P190,c(Q56061)) (Q61089,P190,c(Q56061)) (Q67986,P190,c(Q56061)) (Q185632,P190,c(Q56061)) (Q2044,P190,c(Q56061)) (Q38022,P190,c(Q56061)) (Q16557,P190,c(Q56061))
[ANSWER]
['Q69041', 'P190', {'concept': 'Q56061'}] ['Q61089', 'P190', {'concept': 'Q56061'}] ['Q67986', 'P190', {'concept': 'Q56061'}] ['Q185632', 'P190', {'concept': 'Q56061'}] ['Q2044', 'P190', {'concept': 'Q56061'}] ['Q38022', 'P190', {'concept': 'Q56061'}] ['Q16557', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q185632 property:P190 ?z . ?z rdf:type ontology:Q56061 }
Did you mean Malacca City ?
Malacca City
['Mendrisio', 'sister city', {'concept': 'administrative territorial entity'}] ['Malacca City', 'sister city', {'concept': 'administrative territorial entity'}] ['Rovio', 'sister city', {'concept': 'administrative territorial entity'}] ['Limassol', 'sister city', {'concept': 'administrative territorial entity'}] ['Florence', 'sister city', {'concept': 'administrative territorial entity'}] ['St. Louis', 'sister city', {'concept': 'administrative territorial entity'}] ['Dallas', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Limassol property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Limassol. Could you tell me the answer for that?
(Q185632,P190,c(Q56061))
Q185632
['Q185632', 'P190', {'concept': 'Q56061'}]
['Limassol', 'sister city', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
11
Q41621 Q33935 Q183199 Q17151 Q160544 Q133123 Q3117 Q87 Q188731 Q144869 Q1085
(Q185632,P190,c(Q56061))
[ANSWER]
['Q185632', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q185632 property:P190 ?z . ?z rdf:type ontology:Q56061 }
Haifa Tel Aviv Ioannina Thessaloniki Heraklion Patras Bergisch Gladbach Alexandria Rhodes Zakynthos Prague
11
['Limassol', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Limassol property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q111739
P1376
Q20667921 Q1048835 Q515
USER
How many cities are the county seat of greater number of french administrative divisions or political territories than Puerto Princesa ?
(c(Q515),P1376,c(Q20667921)|c(Q1048835))
action count
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action count
action filter_multi_types
action find
entity Q111739
relation P1376
type Q20667921
type Q1048835
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q20667921'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { FILTER ( ?v > ?m ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { resource:Q111739 property:P1376 ?d . { { ?d rdf:type ontology:Q1048835 } UNION { ?d rdf:type ontology:Q20667921 } } } } . { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?v ) WHERE { { ?a property:P1376 ?f . ?a rdf:type ontology:Q515 . ?f rdf:type ontology:Q20667921 } UNION { ?a property:P1376 ?f . ?a rdf:type ontology:Q515 . ?f rdf:type ontology:Q1048835 } } GROUP BY ?a } }
Puerto Princesa
action count
action greater
action union
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action find_tuple_counts
relation capital of
type city
type political territorial entity
action count
action filter_multi_types
action find
entity Puerto Princesa
relation capital of
type type of french administrative division
type political territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'type of french administrative division'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { FILTER ( ?v > ?m ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { resource:Puerto_Princesa property:capital_of ?d . { { ?d rdf:type ontology:political_territorial_entity } UNION { ?d rdf:type ontology:type_of_french_administrative_division } } } } . { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?v ) WHERE { { ?a property:capital_of ?f . ?a rdf:type ontology:city . ?f rdf:type ontology:type_of_french_administrative_division } UNION { ?a property:capital_of ?f . ?a rdf:type ontology:city . ?f rdf:type ontology:political_territorial_entity } } GROUP BY ?a } }
[]
type of french administrative division political territorial entity city
SYSTEM
10
Q23482 Q2865 Q6602 Q23661 Q2973 Q3958 Q6582 Q456 Q2833 Q7003
(c(Q515),P1376,c(Q20667921)|c(Q1048835))
action count
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action count
action filter_multi_types
action find
entity Q111739
relation P1376
type Q20667921
type Q1048835
[ANSWER]
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q20667921'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { FILTER ( ?v > ?m ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { resource:Q111739 property:P1376 ?d . { { ?d rdf:type ontology:Q1048835 } UNION { ?d rdf:type ontology:Q20667921 } } } } . { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?v ) WHERE { { ?a property:P1376 ?f . ?a rdf:type ontology:Q515 . ?f rdf:type ontology:Q20667921 } UNION { ?a property:P1376 ?f . ?a rdf:type ontology:Q515 . ?f rdf:type ontology:Q1048835 } } GROUP BY ?a } }
Marseille Kassel Strasbourg Wellington Darmstadt Neubrandenburg Carcassonne Lyon Freiburg im Breisgau Dijon
10
action count
action greater
action union
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action find_tuple_counts
relation capital of
type city
type political territorial entity
action count
action filter_multi_types
action find
entity Puerto Princesa
relation capital of
type type of french administrative division
type political territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'type of french administrative division'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { FILTER ( ?v > ?m ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { resource:Puerto_Princesa property:capital_of ?d . { { ?d rdf:type ontology:political_territorial_entity } UNION { ?d rdf:type ontology:type_of_french_administrative_division } } } } . { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?v ) WHERE { { ?a property:capital_of ?f . ?a rdf:type ontology:city . ?f rdf:type ontology:type_of_french_administrative_division } UNION { ?a property:capital_of ?f . ?a rdf:type ontology:city . ?f rdf:type ontology:political_territorial_entity } } GROUP BY ?a } }
[]