Simple Question (Direct)
Simple Question
Q65443
P17
Q15617994
USER
Which administrative territory is Zihlschlacht-Sitterdorf situated in ?
(Q65443,P17,c(Q15617994))
action filter_type
action find
entity Q65443
relation P17
type Q15617994
['Q65443', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q65443 property:P17 ?p }
Zihlschlacht-Sitterdorf
action filter_type
action find
entity Zihlschlacht-Sitterdorf
relation country
type designation for an administrative territorial entity
['Zihlschlacht-Sitterdorf', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Zihlschlacht-Sitterdorf property:country ?p }
[]
designation for an administrative territorial entity
Q39
SYSTEM
Switzerland
Q39
(Q65443,P17,c(Q15617994))
action filter_type
action find
entity Q65443
relation P17
type Q15617994
Which administrative territory is Zihlschlacht-Sitterdorf situated in
['Q65443', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q65443 property:P17 ?p }
Switzerland
Which administrative territory is Zihlschlacht-Sitterdorf situated in
Switzerland
action filter_type
action find
entity Zihlschlacht-Sitterdorf
relation country
type designation for an administrative territorial entity
['Zihlschlacht-Sitterdorf', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Zihlschlacht-Sitterdorf property:country ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q39
P138
Q56061
USER
Which administrative territory has that administrative territory as its toponym ?
(c(Q56061),P138,Q39)
action filter_type
action find_reverse
entity Q39
relation P138
type Q56061
[{'concept': 'Q56061'}, 'P138', 'Q39']
SELECT DISTINCT ?b WHERE { ?b property:P138 resource:Q39 . ?b rdf:type ontology:Q56061 }
Switzerland
action filter_type
action find_reverse
entity Switzerland
relation named after
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'named after', 'Switzerland']
SELECT DISTINCT ?b WHERE { ?b property:named_after resource:Switzerland . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q661735
SYSTEM
Szilasliget
Q661735
(c(Q56061),P138,Q39)
action filter_type
action find_reverse
entity Q39
relation P138
type Q56061
[ANSWER] has that administrative territory as its toponym
[{'concept': 'Q56061'}, 'P138', 'Q39']
SELECT DISTINCT ?b WHERE { ?b property:P138 resource:Q39 . ?b rdf:type ontology:Q56061 }
Szilasliget
Szilasliget has that administrative territory as its toponym
Szilasliget
action filter_type
action find_reverse
entity Switzerland
relation named after
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'named after', 'Switzerland']
SELECT DISTINCT ?b WHERE { ?b property:named_after resource:Switzerland . ?b rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P138
Q15617994
USER
How many administrative territories are the etymology of that administrative territory ?
(Q661735,P138,c(Q15617994))
action count
action filter_type
action find
entity Q661735
relation P138
type Q15617994
['Q661735', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { resource:Q661735 property:P138 ?t . ?t rdf:type ontology:Q15617994 }
action count
action filter_type
action find
entity Szilasliget
relation named after
type designation for an administrative territorial entity
['Szilasliget', 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { resource:Szilasliget property:named_after ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q39
(Q661735,P138,c(Q15617994))
action count
action filter_type
action find
entity Q661735
relation P138
type Q15617994
[ANSWER]
['Q661735', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { resource:Q661735 property:P138 ?t . ?t rdf:type ontology:Q15617994 }
Switzerland
1
action count
action filter_type
action find
entity Szilasliget
relation named after
type designation for an administrative territorial entity
['Szilasliget', 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { resource:Szilasliget property:named_after ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q39
P47
Q7275
USER
Which states do Switzerland share a border with ?
(c(Q7275),P47,Q39)
action filter_type
action find_reverse
entity Q39
relation P47
type Q7275
[{'concept': 'Q7275'}, 'P47', 'Q39']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q7275 . ?i property:P47 resource:Q39 }
Switzerland
action filter_type
action find_reverse
entity Switzerland
relation shares border with
type state
[{'concept': 'state'}, 'shares border with', 'Switzerland']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:state . ?i property:shares_border_with resource:Switzerland }
[]
state
Q176495 Q518101 Q131964
SYSTEM
Federal State of Austria, First Republic of Austria, Austrian Empire
Q176495 Q518101 Q131964
(c(Q7275),P47,Q39)
action filter_type
action find_reverse
entity Q39
relation P47
type Q7275
[ANSWERS] Switzerland share a border
[{'concept': 'Q7275'}, 'P47', 'Q39']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q7275 . ?i property:P47 resource:Q39 }
Federal State of Austria First Republic of Austria Austrian Empire
Federal State of Austria, First Republic of Austria and Austrian Empire Switzerland share a border
Federal State of Austria First Republic of Austria Austrian Empire
action filter_type
action find_reverse
entity Switzerland
relation shares border with
type state
[{'concept': 'state'}, 'shares border with', 'Switzerland']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:state . ?i property:shares_border_with resource:Switzerland }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q176495 Q518101 Q131964
P17
Q43229
USER
Which organizations are situated in Federal State of Austria, First Republic of Austria and Austrian Empire ?
(c(Q43229),P17,Q176495) (c(Q43229),P17,Q518101) (c(Q43229),P17,Q131964)
action union
action filter_type
action find_reverse
entity Q176495
relation P17
type Q43229
action filter_type
action find_reverse
entity Q518101
relation P17
type Q43229
action filter_type
action find_reverse
entity Q131964
relation P17
type Q43229
[{'concept': 'Q43229'}, 'P17', 'Q176495'] [{'concept': 'Q43229'}, 'P17', 'Q518101'] [{'concept': 'Q43229'}, 'P17', 'Q131964']
SELECT DISTINCT ?s WHERE { ?s property:P17 ?t . VALUES ( ?t ) { ( resource:Q518101 ) ( resource:Q176495 ) } }
Federal State of Austria First Republic of Austria Austrian Empire
action union
action filter_type
action find_reverse
entity Federal State of Austria
relation country
type organization
action filter_type
action find_reverse
entity First Republic of Austria
relation country
type organization
action filter_type
action find_reverse
entity Austrian Empire
relation country
type organization
[{'concept': 'organization'}, 'country', 'Federal State of Austria'] [{'concept': 'organization'}, 'country', 'First Republic of Austria'] [{'concept': 'organization'}, 'country', 'Austrian Empire']
SELECT DISTINCT ?s WHERE { ?s property:country ?t . VALUES ( ?t ) { ( resource:First_Republic_of_Austria ) ( resource:Federal_State_of_Austria ) } }
[]
organization
Q1500937 Q1500937 Q12060242
SYSTEM
Otto Eberhardt Cartridge Factory for 1st, 2nd, Těšínská tiskárna for 3rd
Q1500937 Q1500937 Q12060242 Q279219
(c(Q43229),P17,Q176495) (c(Q43229),P17,Q518101) (c(Q43229),P17,Q131964)
action union
action filter_type
action find_reverse
entity Q176495
relation P17
type Q43229
action filter_type
action find_reverse
entity Q518101
relation P17
type Q43229
action filter_type
action find_reverse
entity Q131964
relation P17
type Q43229
[ANSWERS]
[{'concept': 'Q43229'}, 'P17', 'Q176495'] [{'concept': 'Q43229'}, 'P17', 'Q518101'] [{'concept': 'Q43229'}, 'P17', 'Q131964']
SELECT DISTINCT ?s WHERE { ?s property:P17 ?t . VALUES ( ?t ) { ( resource:Q518101 ) ( resource:Q176495 ) } }
Otto Eberhardt Cartridge Factory Otto Eberhardt Cartridge Factory Těšínská tiskárna A. Weiser & Sohn
Otto Eberhardt Cartridge Factory, Otto Eberhardt Cartridge Factory and Těšínská tiskárna are situated in Federal State of Austria, First Republic of Austria and Austrian Empire
Otto Eberhardt Cartridge Factory Otto Eberhardt Cartridge Factory Těšínská tiskárna
action union
action filter_type
action find_reverse
entity Federal State of Austria
relation country
type organization
action filter_type
action find_reverse
entity First Republic of Austria
relation country
type organization
action filter_type
action find_reverse
entity Austrian Empire
relation country
type organization
[{'concept': 'organization'}, 'country', 'Federal State of Austria'] [{'concept': 'organization'}, 'country', 'First Republic of Austria'] [{'concept': 'organization'}, 'country', 'Austrian Empire']
SELECT DISTINCT ?s WHERE { ?s property:country ?t . VALUES ( ?t ) { ( resource:First_Republic_of_Austria ) ( resource:Federal_State_of_Austria ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q176495
P206
Q337567
USER
Which still waters is located next to that state ?
(Q176495,P206,c(Q337567))
action filter_type
action find
entity Q176495
relation P206
type Q337567
['Q176495', 'P206', {'concept': 'Q337567'}]
SELECT DISTINCT ?j WHERE { resource:Q176495 property:P206 ?j . ?j rdf:type ontology:Q337567 }
Federal State of Austria
action filter_type
action find
entity Federal State of Austria
relation located next to body of water
type still waters
['Federal State of Austria', 'located next to body of water', {'concept': 'still waters'}]
SELECT DISTINCT ?j WHERE { resource:Federal_State_of_Austria property:located_next_to_body_of_water ?j . ?j rdf:type ontology:still_waters }
[]
still waters
Clarification for simple ques.
Q176495
SYSTEM
Did you mean Federal State of Austria ?
Q1500937 Q1500937 Q12060242
(Q1500937,P206,c(Q337567)) (Q1500937,P206,c(Q337567)) (Q12060242,P206,c(Q337567))
[ANSWER]
['Q1500937', 'P206', {'concept': 'Q337567'}] ['Q1500937', 'P206', {'concept': 'Q337567'}] ['Q12060242', 'P206', {'concept': 'Q337567'}]
SELECT DISTINCT ?j WHERE { resource:Q176495 property:P206 ?j . ?j rdf:type ontology:Q337567 }
Otto Eberhardt Cartridge Factory Otto Eberhardt Cartridge Factory Těšínská tiskárna
Did you mean Federal State of Austria ?
Federal State of Austria
['Otto Eberhardt Cartridge Factory', 'located next to body of water', {'concept': 'still waters'}] ['Otto Eberhardt Cartridge Factory', 'located next to body of water', {'concept': 'still waters'}] ['Těšínská tiskárna', 'located next to body of water', {'concept': 'still waters'}]
SELECT DISTINCT ?j WHERE { resource:Federal_State_of_Austria property:located_next_to_body_of_water ?j . ?j rdf:type ontology:still_waters }
[]
Simple Question (Coreferenced)
USER
Yes
(Q176495,P206,c(Q337567))
['Q176495', 'P206', {'concept': 'Q337567'}]
['Federal State of Austria', 'located next to body of water', {'concept': 'still waters'}]
[]
Q4127
SYSTEM
Lake Constance
Q4127
(Q176495,P206,c(Q337567))
action filter_type
action find
entity Q176495
relation P206
type Q337567
The [ANSWER] is located next to that state
['Q176495', 'P206', {'concept': 'Q337567'}]
SELECT DISTINCT ?j WHERE { resource:Q176495 property:P206 ?j . ?j rdf:type ontology:Q337567 }
Lake Constance
The Lake Constance is located next to that state
Lake Constance
action filter_type
action find
entity Federal State of Austria
relation located next to body of water
type still waters
['Federal State of Austria', 'located next to body of water', {'concept': 'still waters'}]
SELECT DISTINCT ?j WHERE { resource:Federal_State_of_Austria property:located_next_to_body_of_water ?j . ?j rdf:type ontology:still_waters }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4127
P276
Q178561
USER
Which battle has its location as that still waters ?
(c(Q178561),P276,Q4127)
action filter_type
action find_reverse
entity Q4127
relation P276
type Q178561
[{'concept': 'Q178561'}, 'P276', 'Q4127']
SELECT DISTINCT ?h WHERE { ?h property:P276 resource:Q4127 . ?h rdf:type ontology:Q178561 }
Lake Constance
action filter_type
action find_reverse
entity Lake Constance
relation location
type battle
[{'concept': 'battle'}, 'location', 'Lake Constance']
SELECT DISTINCT ?h WHERE { ?h property:location resource:Lake_Constance . ?h rdf:type ontology:battle }
[]
battle
Q1546379
SYSTEM
Battle of Lake Constance
Q1546379
(c(Q178561),P276,Q4127)
action filter_type
action find_reverse
entity Q4127
relation P276
type Q178561
The [ANSWER] has its location as that still waters
[{'concept': 'Q178561'}, 'P276', 'Q4127']
SELECT DISTINCT ?h WHERE { ?h property:P276 resource:Q4127 . ?h rdf:type ontology:Q178561 }
Battle of Lake Constance
The Battle of Lake Constance has its location as that still waters
Battle of Lake Constance
action filter_type
action find_reverse
entity Lake Constance
relation location
type battle
[{'concept': 'battle'}, 'location', 'Lake Constance']
SELECT DISTINCT ?h WHERE { ?h property:location resource:Lake_Constance . ?h rdf:type ontology:battle }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P138
Q337567 Q486972
USER
How many human settlements come from exactly 1 still waters ?
(c(Q486972),P138,c(Q337567))
action count
action equal
action find_tuple_counts
relation P138
type Q486972
type Q337567
value 1
[{'concept': 'Q486972'}, 'P138', {'concept': 'Q337567'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?m ) WHERE { ?f property:P138 ?a . ?f rdf:type ontology:Q486972 . ?a rdf:type ontology:Q337567 } GROUP BY ?f } . FILTER ( ?m = 1 ) }
action count
action equal
action find_tuple_counts
relation named after
type human settlement
type still waters
value 1
[{'concept': 'human settlement'}, 'named after', {'concept': 'still waters'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?m ) WHERE { ?f property:named_after ?a . ?f rdf:type ontology:human_settlement . ?a rdf:type ontology:still_waters } GROUP BY ?f } . FILTER ( ?m = 1 ) }
[]
still waters human settlement
SYSTEM
1
Q1029545
(c(Q486972),P138,c(Q337567))
action count
action equal
action find_tuple_counts
relation P138
type Q486972
type Q337567
value 1
[ANSWER]
[{'concept': 'Q486972'}, 'P138', {'concept': 'Q337567'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?m ) WHERE { ?f property:P138 ?a . ?f rdf:type ontology:Q486972 . ?a rdf:type ontology:Q337567 } GROUP BY ?f } . FILTER ( ?m = 1 ) }
Lacu Roșu
1
action count
action equal
action find_tuple_counts
relation named after
type human settlement
type still waters
value 1
[{'concept': 'human settlement'}, 'named after', {'concept': 'still waters'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?m ) WHERE { ?f property:named_after ?a . ?f rdf:type ontology:human_settlement . ?a rdf:type ontology:still_waters } GROUP BY ?f } . FILTER ( ?m = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P361
Q1190554 Q178561
USER
Which events are exactly 3 battles a component of ?
(c(Q178561),P361,c(Q1190554))
action equal
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q178561
value 3
[{'concept': 'Q178561'}, 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?z ) WHERE { ?x rdf:type ontology:Q178561 . ?y rdf:type ontology:Q1190554 . ?x property:P361 ?y } GROUP BY ?y } . FILTER ( ?z = 3 ) }
action equal
action find_reverse_tuple_counts
relation part of
type event
type battle
value 3
[{'concept': 'battle'}, 'part of', {'concept': 'event'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?z ) WHERE { ?x rdf:type ontology:battle . ?y rdf:type ontology:event . ?x property:part_of ?y } GROUP BY ?y } . FILTER ( ?z = 3 ) }
[]
event battle
Q646322 Q916495
SYSTEM
Franco-Dutch War, Second Anglo-Dutch War
Q646322 Q916495
(c(Q178561),P361,c(Q1190554))
action equal
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q178561
value 3
[ANSWERS] are exactly 3 battles a component of
[{'concept': 'Q178561'}, 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?z ) WHERE { ?x rdf:type ontology:Q178561 . ?y rdf:type ontology:Q1190554 . ?x property:P361 ?y } GROUP BY ?y } . FILTER ( ?z = 3 ) }
Franco-Dutch War Second Anglo-Dutch War
Franco-Dutch War and Second Anglo-Dutch War are exactly 3 battles a component of
Franco-Dutch War Second Anglo-Dutch War
action equal
action find_reverse_tuple_counts
relation part of
type event
type battle
value 3
[{'concept': 'battle'}, 'part of', {'concept': 'event'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?z ) WHERE { ?x rdf:type ontology:battle . ?y rdf:type ontology:event . ?x property:part_of ?y } GROUP BY ?y } . FILTER ( ?z = 3 ) }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q4525811
Q178561
USER
And also tell me about Herbert Schneider?
(Q4525811,P607,c(Q178561))
action count
action filter_type
action find
entity Q4525811
relation P607
type Q178561
['Q4525811', 'P607', {'concept': 'Q178561'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { ?n rdf:type ontology:Q178561 . resource:Q4525811 property:P607 ?n }
Herbert Schneider
action count
action filter_type
action find
entity Herbert Schneider
relation conflict
type battle
['Herbert Schneider', 'conflict', {'concept': 'battle'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { ?n rdf:type ontology:battle . resource:Herbert_Schneider property:conflict ?n }
[]
battle
SYSTEM
1
(Q4525811,P607,c(Q178561))
action count
action filter_type
action find
entity Q4525811
relation P607
type Q178561
[ANSWER]
['Q4525811', 'P607', {'concept': 'Q178561'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { ?n rdf:type ontology:Q178561 . resource:Q4525811 property:P607 ?n }
1
action count
action filter_type
action find
entity Herbert Schneider
relation conflict
type battle
['Herbert Schneider', 'conflict', {'concept': 'battle'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { ?n rdf:type ontology:battle . resource:Herbert_Schneider property:conflict ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4525811
P19
Q56061
USER
Where was that person born ?
action filter_type
action find
entity Q4525811
relation P19
type Q56061
SELECT DISTINCT ?v WHERE { resource:Q4525811 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Herbert Schneider
action filter_type
action find
entity Herbert Schneider
relation place of birth
type administrative territorial entity
SELECT DISTINCT ?v WHERE { resource:Herbert_Schneider property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2090
SYSTEM
Nuremberg
Q2090
action filter_type
action find
entity Q4525811
relation P19
type Q56061
That person was born in [ANSWER]
SELECT DISTINCT ?v WHERE { resource:Q4525811 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Nuremberg
That person was born in Nuremberg
Nuremberg
action filter_type
action find
entity Herbert Schneider
relation place of birth
type administrative territorial entity
SELECT DISTINCT ?v WHERE { resource:Herbert_Schneider property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P417
Q502895 Q1445650 Q56061
USER
How many administrative territories are lesser number of people and holidays a patron saint of than that administrative territory ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q2090
relation P417
type Q502895
type Q1445650
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?n ) WHERE { VALUES ( ?i ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?g rdf:type ?i } GROUP BY ?e } . FILTER ( ?n < ?l ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Q2090 property:P417 ?r . { { ?r rdf:type ontology:Q502895 } UNION { ?r rdf:type ontology:Q1445650 } } } } }
action count
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Nuremberg
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?n ) WHERE { VALUES ( ?i ) { ( ontology:common_name ) ( ontology:holiday ) } . ?g rdf:type ?i } GROUP BY ?e } . FILTER ( ?n < ?l ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Nuremberg property:patron_saint ?r . { { ?r rdf:type ontology:common_name } UNION { ?r rdf:type ontology:holiday } } } } }
[]
common name holiday administrative territorial entity
SYSTEM
33
Q264716 Q12883498 Q54494 Q50057 Q117388 Q6221 Q46718 Q54119 Q81258 Q47074 Q59257 Q4361 Q2914723 Q100129 Q52547 Q116440 Q2284679 Q496890 Q297224 Q259039 Q54556 Q487786 Q100943 Q244193 Q1747381 Q492475 Q334577 Q39493 Q329984 Q47034 Q215080 Q270288 Q102820
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action count
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q2090
relation P417
type Q502895
type Q1445650
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?n ) WHERE { VALUES ( ?i ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?g rdf:type ?i } GROUP BY ?e } . FILTER ( ?n < ?l ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Q2090 property:P417 ?r . { { ?r rdf:type ontology:Q502895 } UNION { ?r rdf:type ontology:Q1445650 } } } } }
Carzano Pano Platres Belvedere di Spinello Cagnano Amiterno Strangolagalli Brescia Carrè San Pedro Padula Aielli Montefortino Curitiba Nemausus Calvenzano Campomaggiore Arpino General Alvear, Mendoza Balestrate Padergnone Giardinello Africo Orihuela Sorbolo Cagno Polykastro Valença Quetzaltenango Cantello Úbeda Espoo Machala Riccò del Golfo di Spezia Nibbiano
33
action count
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Nuremberg
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?n ) WHERE { VALUES ( ?i ) { ( ontology:common_name ) ( ontology:holiday ) } . ?g rdf:type ?i } GROUP BY ?e } . FILTER ( ?n < ?l ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { resource:Nuremberg property:patron_saint ?r . { { ?r rdf:type ontology:common_name } UNION { ?r rdf:type ontology:holiday } } } } }
[]