Simple Question (Direct)
Simple Question
Q16235934
P19
Q515
USER
Which city is the birthplace of Csaba Vachtler ?
(Q16235934,P19,c(Q515))
action filter_type
action find
entity Q16235934
relation P19
type Q515
['Q16235934', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?l WHERE { resource:Q16235934 property:P19 ?l . ?l rdf:type ontology:Q515 }
Csaba Vachtler
action filter_type
action find
entity Csaba Vachtler
relation place of birth
type city
['Csaba Vachtler', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?l WHERE { resource:Csaba_Vachtler property:place_of_birth ?l . ?l rdf:type ontology:city }
[]
city
Q680963
SYSTEM
Mór
Q680963
(Q16235934,P19,c(Q515))
action filter_type
action find
entity Q16235934
relation P19
type Q515
[ANSWER] the birthplace of Csaba Vachtler
['Q16235934', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?l WHERE { resource:Q16235934 property:P19 ?l . ?l rdf:type ontology:Q515 }
Mór
Mór the birthplace of Csaba Vachtler
Mór
action filter_type
action find
entity Csaba Vachtler
relation place of birth
type city
['Csaba Vachtler', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?l WHERE { resource:Csaba_Vachtler property:place_of_birth ?l . ?l rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q680963
P36
Q1162835
USER
Which district of Hungary has that city as its administrative centre ?
(c(Q1162835),P36,Q680963)
action filter_type
action find_reverse
entity Q680963
relation P36
type Q1162835
[{'concept': 'Q1162835'}, 'P36', 'Q680963']
SELECT DISTINCT ?s WHERE { ?s property:P36 resource:Q680963 . ?s rdf:type ontology:Q1162835 }
Mór
action filter_type
action find_reverse
entity Mór
relation capital
type district of Hungary
[{'concept': 'district of Hungary'}, 'capital', 'Mór']
SELECT DISTINCT ?s WHERE { ?s property:capital resource:Mór . ?s rdf:type ontology:district_of_Hungary }
[]
district of Hungary
Q659414
SYSTEM
Mór District
Q659414
(c(Q1162835),P36,Q680963)
action filter_type
action find_reverse
entity Q680963
relation P36
type Q1162835
District [ANSWER] has that city as its administrative centre
[{'concept': 'Q1162835'}, 'P36', 'Q680963']
SELECT DISTINCT ?s WHERE { ?s property:P36 resource:Q680963 . ?s rdf:type ontology:Q1162835 }
Mór District
District Mór District has that city as its administrative centre
Mór District
action filter_type
action find_reverse
entity Mór
relation capital
type district of Hungary
[{'concept': 'district of Hungary'}, 'capital', 'Mór']
SELECT DISTINCT ?s WHERE { ?s property:capital resource:Mór . ?s rdf:type ontology:district_of_Hungary }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q680963
P20
Q502895
USER
Who died in Mór ?
(c(Q502895),P20,Q680963)
action filter_type
action find_reverse
entity Q680963
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q680963']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . ?m property:P20 resource:Q680963 }
Mór
action filter_type
action find_reverse
entity Mór
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Mór']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . ?m property:place_of_death resource:Mór }
[]
common name
Q176633
SYSTEM
Solomon Löwisohn
Q176633
(c(Q502895),P20,Q680963)
action filter_type
action find_reverse
entity Q680963
relation P20
type Q502895
[ANSWER] died in Mór
[{'concept': 'Q502895'}, 'P20', 'Q680963']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . ?m property:P20 resource:Q680963 }
Solomon Löwisohn
Solomon Löwisohn died in Mór
Solomon Löwisohn
action filter_type
action find_reverse
entity Mór
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Mór']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . ?m property:place_of_death resource:Mór }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q680963
P1376
Q1162835
USER
Which district of Hungary has Mór has its first city ?
(Q680963,P1376,c(Q1162835))
action filter_type
action find
entity Q680963
relation P1376
type Q1162835
['Q680963', 'P1376', {'concept': 'Q1162835'}]
SELECT DISTINCT ?q WHERE { resource:Q680963 property:P1376 ?q . ?q rdf:type ontology:Q1162835 }
Mór
action filter_type
action find
entity Mór
relation capital of
type district of Hungary
['Mór', 'capital of', {'concept': 'district of Hungary'}]
SELECT DISTINCT ?q WHERE { resource:Mór property:capital_of ?q . ?q rdf:type ontology:district_of_Hungary }
[]
district of Hungary
Q659414
SYSTEM
Mór District
Q659414
(Q680963,P1376,c(Q1162835))
action filter_type
action find
entity Q680963
relation P1376
type Q1162835
[ANSWER] has Mór has its first city
['Q680963', 'P1376', {'concept': 'Q1162835'}]
SELECT DISTINCT ?q WHERE { resource:Q680963 property:P1376 ?q . ?q rdf:type ontology:Q1162835 }
Mór District
Mór District has Mór has its first city
Mór District
action filter_type
action find
entity Mór
relation capital of
type district of Hungary
['Mór', 'capital of', {'concept': 'district of Hungary'}]
SELECT DISTINCT ?q WHERE { resource:Mór property:capital_of ?q . ?q rdf:type ontology:district_of_Hungary }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q659414 Q645520 Q7005689
P17
Q15617994
USER
Is that district of Hungary present in Weltersburg and New Brighton Area School District ?
(Q659414,P17,Q645520) (Q659414,P17,Q7005689)
action is_in
entity Q659414
action intersection
action find_reverse
entity Q645520
relation P17
action find_reverse
entity Q7005689
relation P17
['Q659414', 'P17', 'Q645520'] ['Q659414', 'P17', 'Q7005689']
ASK WHERE { resource:Q659414 property:P17 resource:Q645520 . resource:Q659414 property:P17 resource:Q7005689 }
Mór District Weltersburg New Brighton Area School District
action is_in
entity Mór District
action intersection
action find_reverse
entity Weltersburg
relation country
action find_reverse
entity New Brighton Area School District
relation country
['Mór District', 'country', 'Weltersburg'] ['Mór District', 'country', 'New Brighton Area School District']
ASK WHERE { resource:Mór_District property:country resource:Weltersburg . resource:Mór_District property:country resource:New_Brighton_Area_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q659414,P17,Q645520) (Q659414,P17,Q7005689)
action is_in
entity Q659414
action intersection
action find_reverse
entity Q645520
relation P17
action find_reverse
entity Q7005689
relation P17
[ANSWER]
['Q659414', 'P17', 'Q645520'] ['Q659414', 'P17', 'Q7005689']
ASK WHERE { resource:Q659414 property:P17 resource:Q645520 . resource:Q659414 property:P17 resource:Q7005689 }
No
action is_in
entity Mór District
action intersection
action find_reverse
entity Weltersburg
relation country
action find_reverse
entity New Brighton Area School District
relation country
['Mór District', 'country', 'Weltersburg'] ['Mór District', 'country', 'New Brighton Area School District']
ASK WHERE { resource:Mór_District property:country resource:Weltersburg . resource:Mór_District property:country resource:New_Brighton_Area_School_District }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q659414
P17
Q15617994
USER
How many administrative territories are Mór District located in ?
(Q659414,P17,c(Q15617994))
action count
action filter_type
action find
entity Q659414
relation P17
type Q15617994
['Q659414', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { resource:Q659414 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
Mór District
action count
action filter_type
action find
entity Mór District
relation country
type designation for an administrative territorial entity
['Mór District', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { resource:Mór_District property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q28
(Q659414,P17,c(Q15617994))
action count
action filter_type
action find
entity Q659414
relation P17
type Q15617994
[ANSWER]
['Q659414', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { resource:Q659414 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
Hungary
1
action count
action filter_type
action find
entity Mór District
relation country
type designation for an administrative territorial entity
['Mór District', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { resource:Mór_District property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1582218 Q680963
P19 P190
Q515
USER
Which cities are twin cities of Mór or were Hans Sauer born in ?
OR((Q680963,P190,c(Q515)), (Q1582218,P19,c(Q515)))
action filter_type
action union
action find
entity Q680963
relation P190
action find
entity Q1582218
relation P19
type Q515
{'OR': [['Q680963', 'P190', {'concept': 'Q515'}], ['Q1582218', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q515 . { { resource:Q1582218 property:P19 ?f } UNION { resource:Q680963 property:P190 ?f } } }
Hans Sauer Mór
action filter_type
action union
action find
entity Mór
relation sister city
action find
entity Hans Sauer
relation place of birth
type city
{'OR': [['Mór', 'sister city', {'concept': 'city'}], ['Hans Sauer', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:city . { { resource:Hans_Sauer property:place_of_birth ?f } UNION { resource:Mór property:sister_city ?f } } }
[]
city
Q3004 Q166829
SYSTEM
Ingolstadt, Miercurea Nirajului
Q3004 Q166829
OR((Q680963,P190,c(Q515)), (Q1582218,P19,c(Q515)))
action filter_type
action union
action find
entity Q680963
relation P190
action find
entity Q1582218
relation P19
type Q515
[ANSWERS]
{'OR': [['Q680963', 'P190', {'concept': 'Q515'}], ['Q1582218', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q515 . { { resource:Q1582218 property:P19 ?f } UNION { resource:Q680963 property:P190 ?f } } }
Ingolstadt Miercurea Nirajului
Which cities are twin cities of Mór or were Hans Sauer born in
Ingolstadt Miercurea Nirajului
action filter_type
action union
action find
entity Mór
relation sister city
action find
entity Hans Sauer
relation place of birth
type city
{'OR': [['Mór', 'sister city', {'concept': 'city'}], ['Hans Sauer', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:city . { { resource:Hans_Sauer property:place_of_birth ?f } UNION { resource:Mór property:sister_city ?f } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1209
P206
Q15324 Q1267889 Q515
USER
Which cities are located in the neighbourhood of less number of bodies of water and waterways than Free Hanseatic City of Bremen ?
(c(Q515),P206,c(Q15324)|c(Q1267889))
action less
action union
action find_tuple_counts
relation P206
type Q515
type Q15324
action find_tuple_counts
relation P206
type Q515
type Q1267889
action count
action filter_multi_types
action find
entity Q1209
relation P206
type Q15324
type Q1267889
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) ?t WHERE { { ?t property:P206 ?y . ?t rdf:type ontology:Q515 . ?y rdf:type ontology:Q15324 } UNION { ?t property:P206 ?y . ?t rdf:type ontology:Q515 . ?y rdf:type ontology:Q1267889 } } GROUP BY ?t } . FILTER ( ?m < ?n ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { ?i rdf:type ?v . VALUES ( ?v ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } } . resource:Q1209 property:P206 ?i } } }
Free Hanseatic City of Bremen
action less
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
action count
action filter_multi_types
action find
entity Free Hanseatic City of Bremen
relation located next to body of water
type body of water
type waterway
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) ?t WHERE { { ?t property:located_next_to_body_of_water ?y . ?t rdf:type ontology:city . ?y rdf:type ontology:body_of_water } UNION { ?t property:located_next_to_body_of_water ?y . ?t rdf:type ontology:city . ?y rdf:type ontology:waterway } } GROUP BY ?t } . FILTER ( ?m < ?n ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { ?i rdf:type ?v . VALUES ( ?v ) { ( ontology:body_of_water ) ( ontology:waterway ) } } . resource:Free_Hanseatic_City_of_Bremen property:located_next_to_body_of_water ?i } } }
[]
body of water waterway city
Q1899 Q1731 Q1794
SYSTEM
Kyiv, Dresden, Frankfurt
Q3075 Q1794 Q1863 Q1865 Q496499 Q3974 Q846877 Q19689 Q2966 Q34217 Q496479 Q3004 Q488869 Q827041 Q3572 Q623549 Q2865 Q4024 Q1711 Q2978 Q3806 Q2973 Q3014 Q1844 Q14821 Q3958 Q3955 Q23430 Q633272 Q2773 Q612815 Q320943 Q1858 Q320416 Q890122 Q4007 Q2706 Q7070 Q653545 Q8684 Q270704 Q2749 Q4346 Q3838 Q2833 Q3931 Q3751 Q3750 Q3200 Q3126 Q3042 Q157835 Q3046 Q3936 Q2936 Q3214 Q2100 Q1533 Q1530 Q1731 Q1953 Q5838 Q7027 Q3994 Q19660 Q11194 Q3915 Q2119 Q3069 Q1720 Q1721 Q329996 Q3904 Q695920 Q2910 Q1899 Q2999 Q2844
(c(Q515),P206,c(Q15324)|c(Q1267889))
action less
action union
action find_tuple_counts
relation P206
type Q515
type Q15324
action find_tuple_counts
relation P206
type Q515
type Q1267889
action count
action filter_multi_types
action find
entity Q1209
relation P206
type Q15324
type Q1267889
[ANSWERS] are located in the neighbourhood of less number of bodies of water and waterways than Free Hanseatic City of Bremen
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) ?t WHERE { { ?t property:P206 ?y . ?t rdf:type ontology:Q515 . ?y rdf:type ontology:Q15324 } UNION { ?t property:P206 ?y . ?t rdf:type ontology:Q515 . ?y rdf:type ontology:Q1267889 } } GROUP BY ?t } . FILTER ( ?m < ?n ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { ?i rdf:type ?v . VALUES ( ?v ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } } . resource:Q1209 property:P206 ?i } } }
Fürth Frankfurt Andorra la Vella Kuala Lumpur Kazuno Landshut Semboku Tirana Heidelberg Oxford Yokote Ingolstadt Benalmádena Beroun Tunis Puerto de la Cruz Kassel Frankfurt (Oder) Potsdam Regensburg Tübingen Darmstadt Wolfsburg Vaduz Coburg Neubrandenburg Weimar Ulaanbaatar Yuzawa Braunschweig Garachico Matsudo Hanoi Tartessos Bolhrad Rosenheim Bremerhaven Eisenach Kita-Akita Seoul Třebíč Augsburg Waren (Müritz) Kinshasa Freiburg im Breisgau Brandenburg an der Havel Praia Gera Salzgitter Erlangen Offenbach am Main Zaporizhzhya Pforzheim Bamberg Oldenburg Cottbus Duisburg Caracas Baghdad Dresden Yerevan Kabul Straubing Kempten Bucharest Sarajevo Antananarivo Mannheim Bottrop Mainz Wiesbaden Ōdate Mbabane Daisen Ludwigshafen Kyiv Würzburg Brasília
Kyiv, Dresden and Frankfurt are located in the neighbourhood of less number of bodies of water and waterways than Free Hanseatic City of Bremen
Kyiv Dresden Frankfurt
action less
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
action count
action filter_multi_types
action find
entity Free Hanseatic City of Bremen
relation located next to body of water
type body of water
type waterway
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) ?t WHERE { { ?t property:located_next_to_body_of_water ?y . ?t rdf:type ontology:city . ?y rdf:type ontology:body_of_water } UNION { ?t property:located_next_to_body_of_water ?y . ?t rdf:type ontology:city . ?y rdf:type ontology:waterway } } GROUP BY ?t } . FILTER ( ?m < ?n ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { ?i rdf:type ?v . VALUES ( ?v ) { ( ontology:body_of_water ) ( ontology:waterway ) } } . resource:Free_Hanseatic_City_of_Bremen property:located_next_to_body_of_water ?i } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q633935
P206
Q15324 Q1267889 Q515
USER
And how about Oga?
(c(Q515),P206,c(Q15324)|c(Q1267889))
action less
action union
action find_tuple_counts
relation P206
type Q515
type Q15324
action find_tuple_counts
relation P206
type Q515
type Q1267889
action count
action filter_multi_types
action find
entity Q633935
relation P206
type Q15324
type Q1267889
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) ?v WHERE { VALUES ( ?e ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } . ?f rdf:type ?e } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { resource:Q633935 property:P206 ?u . { { ?u rdf:type ontology:Q1267889 } UNION { ?u rdf:type ontology:Q15324 } } } } . FILTER ( ?l < ?j ) }
Oga
action less
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
action count
action filter_multi_types
action find
entity Oga
relation located next to body of water
type body of water
type waterway
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) ?v WHERE { VALUES ( ?e ) { ( ontology:body_of_water ) ( ontology:waterway ) } . ?f rdf:type ?e } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { resource:Oga property:located_next_to_body_of_water ?u . { { ?u rdf:type ontology:waterway } UNION { ?u rdf:type ontology:body_of_water } } } } . FILTER ( ?l < ?j ) }
[]
body of water waterway city
Q1899 Q1731 Q1794
SYSTEM
Kyiv, Dresden, Frankfurt
Q3075 Q1794 Q1863 Q1865 Q496499 Q3974 Q846877 Q19689 Q2966 Q34217 Q496479 Q3004 Q488869 Q827041 Q3572 Q623549 Q2865 Q4024 Q1711 Q2978 Q3806 Q2973 Q3014 Q1844 Q14821 Q3958 Q3955 Q23430 Q633272 Q2773 Q612815 Q320943 Q1858 Q320416 Q890122 Q4007 Q2706 Q7070 Q653545 Q8684 Q270704 Q2749 Q4346 Q3838 Q2833 Q3931 Q3751 Q3750 Q3200 Q3126 Q3042 Q157835 Q3046 Q3936 Q2936 Q3214 Q2100 Q1533 Q1530 Q1731 Q1953 Q5838 Q7027 Q3994 Q19660 Q11194 Q3915 Q2119 Q3069 Q1720 Q1721 Q329996 Q3904 Q695920 Q2910 Q1899 Q2999 Q2844
(c(Q515),P206,c(Q15324)|c(Q1267889))
action less
action union
action find_tuple_counts
relation P206
type Q515
type Q15324
action find_tuple_counts
relation P206
type Q515
type Q1267889
action count
action filter_multi_types
action find
entity Q633935
relation P206
type Q15324
type Q1267889
[ANSWERS]
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) ?v WHERE { VALUES ( ?e ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } . ?f rdf:type ?e } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { resource:Q633935 property:P206 ?u . { { ?u rdf:type ontology:Q1267889 } UNION { ?u rdf:type ontology:Q15324 } } } } . FILTER ( ?l < ?j ) }
Fürth Frankfurt Andorra la Vella Kuala Lumpur Kazuno Landshut Semboku Tirana Heidelberg Oxford Yokote Ingolstadt Benalmádena Beroun Tunis Puerto de la Cruz Kassel Frankfurt (Oder) Potsdam Regensburg Tübingen Darmstadt Wolfsburg Vaduz Coburg Neubrandenburg Weimar Ulaanbaatar Yuzawa Braunschweig Garachico Matsudo Hanoi Tartessos Bolhrad Rosenheim Bremerhaven Eisenach Kita-Akita Seoul Třebíč Augsburg Waren (Müritz) Kinshasa Freiburg im Breisgau Brandenburg an der Havel Praia Gera Salzgitter Erlangen Offenbach am Main Zaporizhzhya Pforzheim Bamberg Oldenburg Cottbus Duisburg Caracas Baghdad Dresden Yerevan Kabul Straubing Kempten Bucharest Sarajevo Antananarivo Mannheim Bottrop Mainz Wiesbaden Ōdate Mbabane Daisen Ludwigshafen Kyiv Würzburg Brasília
Kyiv Dresden Frankfurt
action less
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
action count
action filter_multi_types
action find
entity Oga
relation located next to body of water
type body of water
type waterway
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) ?v WHERE { VALUES ( ?e ) { ( ontology:body_of_water ) ( ontology:waterway ) } . ?f rdf:type ?e } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { resource:Oga property:located_next_to_body_of_water ?u . { { ?u rdf:type ontology:waterway } UNION { ?u rdf:type ontology:body_of_water } } } } . FILTER ( ?l < ?j ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1794
P6
Q502895
USER
How many people are the heads of the government of Frankfurt ?
(Q1794,P6,c(Q502895))
action count
action filter_type
action find
entity Q1794
relation P6
type Q502895
['Q1794', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { ?p rdf:type ontology:Q502895 . resource:Q1794 property:P6 ?p }
Frankfurt
action count
action filter_type
action find
entity Frankfurt
relation head of government
type common name
['Frankfurt', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { ?p rdf:type ontology:common_name . resource:Frankfurt property:head_of_government ?p }
[]
common name
SYSTEM
19
Q63882 Q100507 Q2573280 Q96981 Q2576973 Q99842 Q1764115 Q84856 Q113325 Q446890 Q2545117 Q96506 Q1440251 Q1445962 Q117166 Q2560878 Q61249 Q102860 Q2592018
(Q1794,P6,c(Q502895))
action count
action filter_type
action find
entity Q1794
relation P6
type Q502895
[ANSWER]
['Q1794', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { ?p rdf:type ontology:Q502895 . resource:Q1794 property:P6 ?p }
Johann von Miquel Friedrich Krebs Wilhelm Hollbach Volker Hauff Willi Brundert Georg Voigt Kurt Blaum Ludwig Landmann Andreas von Schoeler Walter Wallmann Walter Kolb Peter Feldmann Walter Möller Franz Adickes Rudi Arndt Werner Bockelmann Petra Roth Daniel Heinrich Mumm von Schwarzenstein Wolfram Brück
19
action count
action filter_type
action find
entity Frankfurt
relation head of government
type common name
['Frankfurt', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { ?p rdf:type ontology:common_name . resource:Frankfurt property:head_of_government ?p }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q2348374
Q502895
USER
And also tell me about Budeasa?
(Q2348374,P6,c(Q502895))
action count
action filter_type
action find
entity Q2348374
relation P6
type Q502895
['Q2348374', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { resource:Q2348374 property:P6 ?e . ?e rdf:type ontology:Q502895 }
Budeasa
action count
action filter_type
action find
entity Budeasa
relation head of government
type common name
['Budeasa', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { resource:Budeasa property:head_of_government ?e . ?e rdf:type ontology:common_name }
[]
common name
SYSTEM
2
(Q2348374,P6,c(Q502895))
action count
action filter_type
action find
entity Q2348374
relation P6
type Q502895
[ANSWER]
['Q2348374', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { resource:Q2348374 property:P6 ?e . ?e rdf:type ontology:Q502895 }
2
action count
action filter_type
action find
entity Budeasa
relation head of government
type common name
['Budeasa', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { resource:Budeasa property:head_of_government ?e . ?e rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q854918
P1376
Q13220204 Q1048835 Q515
USER
Which cities are the county seat of greater number of administrative country subdivisions and political territories than Szécsény ?
(c(Q515),P1376,c(Q13220204)|c(Q1048835))
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q13220204
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action count
action filter_multi_types
action find
entity Q854918
relation P1376
type Q13220204
type Q1048835
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q13220204'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { resource:Q854918 property:P1376 ?j . { { ?j rdf:type ontology:Q13220204 } UNION { ?j rdf:type ontology:Q1048835 } } } } . FILTER ( ?h > ?q ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?i WHERE { { ?i property:P1376 ?m . ?m rdf:type ontology:Q13220204 . ?i rdf:type ontology:Q515 } UNION { ?m rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q515 . ?i property:P1376 ?m } } GROUP BY ?i } }
Szécsény
action greater
action union
action find_tuple_counts
relation capital of
type city
type second-level administrative country subdivision
action find_tuple_counts
relation capital of
type city
type political territorial entity
action count
action filter_multi_types
action find
entity Szécsény
relation capital of
type second-level administrative country subdivision
type political territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { resource:Szécsény property:capital_of ?j . { { ?j rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?j rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?h > ?q ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?i WHERE { { ?i property:capital_of ?m . ?m rdf:type ontology:second-level_administrative_country_subdivision . ?i rdf:type ontology:city } UNION { ?m rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:city . ?i property:capital_of ?m } } GROUP BY ?i } }
[]
second-level administrative country subdivision political territorial entity city
Q1899 Q1731 Q23482
SYSTEM
Kyiv, Dresden, Marseille
Q15826 Q39738 Q10126 Q1710 Q14525 Q3042 Q3974 Q873377 Q8131 Q4024 Q1711 Q496667 Q27860 Q3806 Q592338 Q52607 Q5779 Q1696 Q41474 Q1070920 Q174096 Q111739 Q18970 Q432169 Q147738 Q3926 Q11462 Q3214 Q23482 Q505208 Q1000336 Q583137 Q1019949 Q235004 Q725168 Q1899 Q12062 Q2966 Q1467 Q14499 Q2865 Q12245 Q117676 Q1844 Q10389 Q35925 Q15379 Q1723 Q459787 Q1025387 Q6602 Q23661 Q191651 Q305640 Q14819 Q5285 Q14182 Q6807568 Q7568 Q1731 Q1636 Q7786 Q10104 Q1020939 Q155674 Q314686 Q2180 Q714628 Q177149 Q14960 Q874270 Q2978 Q2973 Q14821 Q3958 Q2079 Q8156 Q1856 Q4007 Q14168 Q55598 Q271000 Q1826 Q542154 Q7253 Q2936 Q2749 Q63145 Q2119 Q271917 Q5972 Q83247 Q1645 Q7578 Q14126 Q15847 Q3768 Q2209 Q2200 Q16506 Q14155 Q14409 Q40626 Q55740 Q693264 Q6582 Q502205 Q57944 Q2795 Q8179 Q5217 Q1020709 Q456 Q267894 Q2152435 Q2833 Q3935 Q7003 Q3750 Q894059 Q183111 Q40584 Q1067897 Q11506 Q107624 Q8042 Q50179 Q104125 Q2999
(c(Q515),P1376,c(Q13220204)|c(Q1048835))
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q13220204
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action count
action filter_multi_types
action find
entity Q854918
relation P1376
type Q13220204
type Q1048835
[ANSWERS] are the county seat of greater number of administrative country subdivisions and political territories than Szécsény
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q13220204'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { resource:Q854918 property:P1376 ?j . { { ?j rdf:type ontology:Q13220204 } UNION { ?j rdf:type ontology:Q1048835 } } } } . FILTER ( ?h > ?q ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?i WHERE { { ?i property:P1376 ?m . ?m rdf:type ontology:Q13220204 . ?i rdf:type ontology:Q515 } UNION { ?m rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q515 . ?i property:P1376 ?m } } GROUP BY ?i } }
Palu Laoag Serang Isabela City Gorontalo Offenbach am Main Landshut Dumaguete Palembang Frankfurt (Oder) Potsdam Muroran Jayapura Tübingen Marawi Mar del Plata Banda Aceh Legazpi Kingstown Mamuju Sorsogon City Puerto Princesa Ambon Dipolog Saint Helier Pretoria Surabaya Cottbus Marseille Ouarzazate Tandil Kidapawan Surigao City Vigan Tagum Kyiv Torgau Heidelberg Cebu City Samarinda Kassel Stanley Viseu Vaduz Bandung Tabuk Kendari Batangas City Iloilo City Maasin Strasbourg Wellington Masbate City Abashiri Freiberg Tarlac Banjarmasin Emmen Yogyakarta Dresden Antipolo Pekanbaru Tanjung Pinang Digos Tandag Mati Malolos Rumoi Obihiro Brno Pagadian Regensburg Darmstadt Coburg Neubrandenburg Leipzig Bandar Lampung Malaybalay Rosenheim Pontianak Palayan Bouaké Tagbilaran Koronadal Padang Oldenburg Augsburg Imus Mannheim Kushiro Medan Braga Cagayan de Oro Jambi Mataram Manado Yamoussoukro Roxas Tuguegarao České Budějovice Kupang Palangkaraya Tacloban San Fernando Iwamizawa Carcassonne Nemuro Annaberg-Buchholz Chemnitz Pangkal Pinang Bacolod Catbalogan Lyon Wakkanai Miramar Freiburg im Breisgau Windhoek Dijon Gera Borongan Jihlava San Fernando Oroquieta Denpasar Calapan Bengkulu Ilagan Lucena Würzburg
Kyiv, Dresden and Marseille are the county seat of greater number of administrative country subdivisions and political territories than Szécsény
Kyiv Dresden Marseille
action greater
action union
action find_tuple_counts
relation capital of
type city
type second-level administrative country subdivision
action find_tuple_counts
relation capital of
type city
type political territorial entity
action count
action filter_multi_types
action find
entity Szécsény
relation capital of
type second-level administrative country subdivision
type political territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { resource:Szécsény property:capital_of ?j . { { ?j rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?j rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?h > ?q ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) ?i WHERE { { ?i property:capital_of ?m . ?m rdf:type ontology:second-level_administrative_country_subdivision . ?i rdf:type ontology:city } UNION { ?m rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:city . ?i property:capital_of ?m } } GROUP BY ?i } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q6582
P1376
Q13220204 Q1048835 Q515
USER
And what about Carcassonne?
(c(Q515),P1376,c(Q13220204)|c(Q1048835))
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q13220204
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action count
action filter_multi_types
action find
entity Q6582
relation P1376
type Q13220204
type Q1048835
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q13220204'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?h WHERE { ?d rdf:type ?o . VALUES ( ?o ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Q6582 property:P1376 ?b . { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:Q13220204 ) ( ontology:Q1048835 ) } } } } . FILTER ( ?f > ?i ) }
Carcassonne
action greater
action union
action find_tuple_counts
relation capital of
type city
type second-level administrative country subdivision
action find_tuple_counts
relation capital of
type city
type political territorial entity
action count
action filter_multi_types
action find
entity Carcassonne
relation capital of
type second-level administrative country subdivision
type political territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?h WHERE { ?d rdf:type ?o . VALUES ( ?o ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Carcassonne property:capital_of ?b . { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:political_territorial_entity ) } } } } . FILTER ( ?f > ?i ) }
[]
second-level administrative country subdivision political territorial entity city
Q6602 Q2865 Q2973
SYSTEM
Strasbourg, Kassel, Darmstadt
Q2865 Q6602 Q23661 Q2973 Q3958 Q2833
(c(Q515),P1376,c(Q13220204)|c(Q1048835))
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q13220204
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action count
action filter_multi_types
action find
entity Q6582
relation P1376
type Q13220204
type Q1048835
[ANSWERS]
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q13220204'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?h WHERE { ?d rdf:type ?o . VALUES ( ?o ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Q6582 property:P1376 ?b . { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:Q13220204 ) ( ontology:Q1048835 ) } } } } . FILTER ( ?f > ?i ) }
Kassel Strasbourg Wellington Darmstadt Neubrandenburg Freiburg im Breisgau
Strasbourg Kassel Darmstadt
action greater
action union
action find_tuple_counts
relation capital of
type city
type second-level administrative country subdivision
action find_tuple_counts
relation capital of
type city
type political territorial entity
action count
action filter_multi_types
action find
entity Carcassonne
relation capital of
type second-level administrative country subdivision
type political territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?h WHERE { ?d rdf:type ?o . VALUES ( ?o ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Carcassonne property:capital_of ?b . { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:political_territorial_entity ) } } } } . FILTER ( ?f > ?i ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q6602 Q2865 Q2973
P159
Q43229
USER
Which organizations have the principal seat at those cities ?
(c(Q43229),P159,Q6602) (c(Q43229),P159,Q2865) (c(Q43229),P159,Q2973)
action filter_type
action find_reverse
entity prev_answer
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q6602'] [{'concept': 'Q43229'}, 'P159', 'Q2865'] [{'concept': 'Q43229'}, 'P159', 'Q2973']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q43229 . ?i property:P159 ?r . VALUES ( ?r ) { ( resource:Q2865 ) ( resource:Q6602 ) ( resource:Q23661 ) } }
Strasbourg Kassel Darmstadt
action filter_type
action find_reverse
entity prev_answer
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Strasbourg'] [{'concept': 'organization'}, 'headquarters location', 'Kassel'] [{'concept': 'organization'}, 'headquarters location', 'Darmstadt']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:organization . ?i property:headquarters_location ?r . VALUES ( ?r ) { ( resource:Kassel ) ( resource:Strasbourg ) ( resource:Wellington ) } }
[]
organization
Q567050 Q2147902 Q642627
SYSTEM
Wintershall, Rheinmetall MAN Military Vehicles, Crédit Mutuel
Q15690873 Q749431 Q642627 Q19972881 Q2311262 Q35971 Q94786 Q1033911 Q1551094 Q163580 Q1386377 Q658173 Q2147902 Q567050 Q1040398 Q16988621 Q1742261 Q834489 Q590940 Q1271019 Q702674 Q17068910
(c(Q43229),P159,Q6602) (c(Q43229),P159,Q2865) (c(Q43229),P159,Q2973)
action filter_type
action find_reverse
entity prev_answer
relation P159
type Q43229
[ANSWERS] have the principal seat at those cities
[{'concept': 'Q43229'}, 'P159', 'Q6602'] [{'concept': 'Q43229'}, 'P159', 'Q2865'] [{'concept': 'Q43229'}, 'P159', 'Q2973']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q43229 . ?i property:P159 ?r . VALUES ( ?r ) { ( resource:Q2865 ) ( resource:Q6602 ) ( resource:Q23661 ) } }
H. Koulen & Sohn Sofitel Crédit Mutuel Ensemble vocal Allegro Électricité de Strasbourg Mathis Daniel Kern Manufacture d'Orgues Cantus Verkehrsgesellschaft Wingas Henschel & Sohn F. W. Breithaupt & Sohn K+S Rheinmetall MAN Military Vehicles Wintershall Carl Schenck AG Computer Simulation Technology Kinopolis Riese und Müller T-Online Döhler Wella Merck Consumer Health
Wintershall, Rheinmetall MAN Military Vehicles and Crédit Mutuel have the principal seat at those cities
Wintershall Rheinmetall MAN Military Vehicles Crédit Mutuel
action filter_type
action find_reverse
entity prev_answer
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Strasbourg'] [{'concept': 'organization'}, 'headquarters location', 'Kassel'] [{'concept': 'organization'}, 'headquarters location', 'Darmstadt']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:organization . ?i property:headquarters_location ?r . VALUES ( ?r ) { ( resource:Kassel ) ( resource:Strasbourg ) ( resource:Wellington ) } }
[]