Simple Question (Direct)
Simple Question
Q588816
P39
Q12737077
USER
What were the positions for which Anton Dey were appointed ?
(Q588816,P39,c(Q12737077))
action filter_type
action find
entity Q588816
relation P39
type Q12737077
['Q588816', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q588816 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
Anton Dey
action filter_type
action find
entity Anton Dey
relation position held
type occupation
['Anton Dey', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Anton_Dey property:position_held ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q17519166 Q30185
SYSTEM
Member of the Hessian Parliament, mayor
Q17519166 Q30185
(Q588816,P39,c(Q12737077))
action filter_type
action find
entity Q588816
relation P39
type Q12737077
[ANSWERS]
['Q588816', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q588816 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
Member of the Hessian Parliament mayor
Member of the Hessian Parliament and mayor
Member of the Hessian Parliament mayor
action filter_type
action find
entity Anton Dey
relation position held
type occupation
['Anton Dey', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Anton_Dey property:position_held ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q588816
P937
Q515
USER
Which city is the work location of that person ?
(Q17519166,P937,c(Q515)) (Q30185,P937,c(Q515))
action filter_type
action find
entity Q588816
relation P937
type Q515
['Q17519166', 'P937', {'concept': 'Q515'}] ['Q30185', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?k WHERE { resource:Q588816 property:P937 ?k . ?k rdf:type ontology:Q515 }
Anton Dey
action filter_type
action find
entity Anton Dey
relation work location
type city
['Member of the Hessian Parliament', 'work location', {'concept': 'city'}] ['mayor', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?k WHERE { resource:Anton_Dey property:work_location ?k . ?k rdf:type ontology:city }
[]
city
Q1721
SYSTEM
Wiesbaden
Q1721
(Q17519166,P937,c(Q515)) (Q30185,P937,c(Q515))
action filter_type
action find
entity Q588816
relation P937
type Q515
[ANSWER] is the work location of that person
['Q17519166', 'P937', {'concept': 'Q515'}] ['Q30185', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?k WHERE { resource:Q588816 property:P937 ?k . ?k rdf:type ontology:Q515 }
Wiesbaden
Wiesbaden is the work location of that person
Wiesbaden
action filter_type
action find
entity Anton Dey
relation work location
type city
['Member of the Hessian Parliament', 'work location', {'concept': 'city'}] ['mayor', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?k WHERE { resource:Anton_Dey property:work_location ?k . ?k rdf:type ontology:city }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1721 Q661607 Q183
P17
Q1048835
USER
Is that city located in Pedro do Rosário and Germany ?
(Q1721,P17,Q661607) (Q1721,P17,Q183)
action is_in
entity Q1721
action intersection
action find_reverse
entity Q661607
relation P17
action find_reverse
entity Q183
relation P17
['Q1721', 'P17', 'Q661607'] ['Q1721', 'P17', 'Q183']
ASK WHERE { resource:Q1721 property:P17 resource:Q661607 . resource:Q1721 property:P17 resource:Q183 }
Wiesbaden Pedro do Rosário Germany
action is_in
entity Wiesbaden
action intersection
action find_reverse
entity Pedro do Rosário
relation country
action find_reverse
entity Germany
relation country
['Wiesbaden', 'country', 'Pedro do Rosário'] ['Wiesbaden', 'country', 'Germany']
ASK WHERE { resource:Wiesbaden property:country resource:Pedro_do_Rosário . resource:Wiesbaden property:country resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q1721,P17,Q661607) (Q1721,P17,Q183)
action is_in
entity Q1721
action intersection
action find_reverse
entity Q661607
relation P17
action find_reverse
entity Q183
relation P17
[ANSWER]
['Q1721', 'P17', 'Q661607'] ['Q1721', 'P17', 'Q183']
ASK WHERE { resource:Q1721 property:P17 resource:Q661607 . resource:Q1721 property:P17 resource:Q183 }
NO and YES respectively
action is_in
entity Wiesbaden
action intersection
action find_reverse
entity Pedro do Rosário
relation country
action find_reverse
entity Germany
relation country
['Wiesbaden', 'country', 'Pedro do Rosário'] ['Wiesbaden', 'country', 'Germany']
ASK WHERE { resource:Wiesbaden property:country resource:Pedro_do_Rosário . resource:Wiesbaden property:country resource:Germany }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17519166
P361
Q1752346
USER
What is Member of the Hessian Parliament a part of ?
(Q17519166,P361,c(Q1752346))
action filter_type
action find
entity Q17519166
relation P361
type Q1752346
['Q17519166', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1752346 . resource:Q17519166 property:P361 ?d }
Member of the Hessian Parliament
action filter_type
action find
entity Member of the Hessian Parliament
relation part of
type assembly
['Member of the Hessian Parliament', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:assembly . resource:Member_of_the_Hessian_Parliament property:part_of ?d }
[]
assembly
Q510511
SYSTEM
Landtag of Hesse
Q510511
(Q17519166,P361,c(Q1752346))
action filter_type
action find
entity Q17519166
relation P361
type Q1752346
Member of the Hessian Parliament a part of is the [ANSWER]
['Q17519166', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1752346 . resource:Q17519166 property:P361 ?d }
Landtag of Hesse
Member of the Hessian Parliament a part of is the Landtag of Hesse
Landtag of Hesse
action filter_type
action find
entity Member of the Hessian Parliament
relation part of
type assembly
['Member of the Hessian Parliament', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:assembly . resource:Member_of_the_Hessian_Parliament property:part_of ?d }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q19694523
Q1752346
USER
And also tell me about Member of the Parliament of Nepal?
(Q19694523,P361,c(Q1752346))
action filter_type
action find
entity Q19694523
relation P361
type Q1752346
['Q19694523', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?x WHERE { resource:Q19694523 property:P361 ?x . ?x rdf:type ontology:Q1752346 }
Member of the Parliament of Nepal
action filter_type
action find
entity Member of the Parliament of Nepal
relation part of
type assembly
['Member of the Parliament of Nepal', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?x WHERE { resource:Member_of_the_Parliament_of_Nepal property:part_of ?x . ?x rdf:type ontology:assembly }
[]
assembly
Q3896143
SYSTEM
Parliament of Nepal
Q3896143
(Q19694523,P361,c(Q1752346))
action filter_type
action find
entity Q19694523
relation P361
type Q1752346
[ANSWER]
['Q19694523', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?x WHERE { resource:Q19694523 property:P361 ?x . ?x rdf:type ontology:Q1752346 }
Parliament of Nepal
Parliament of Nepal
action filter_type
action find
entity Member of the Parliament of Nepal
relation part of
type assembly
['Member of the Parliament of Nepal', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?x WHERE { resource:Member_of_the_Parliament_of_Nepal property:part_of ?x . ?x rdf:type ontology:assembly }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P361
Q1752346 Q7210356
USER
How many assemblies are less number of political organizations a component of than that assembly ?
(c(Q7210356),P361,c(Q1752346))
action count
action less
action find_tuple_counts
relation P361
type Q1752346
type Q7210356
action count
action filter_type
action find
entity Q3896143
relation P361
type Q1752346
[{'concept': 'Q7210356'}, 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?a ) WHERE { ?x property:P361 ?o . ?x rdf:type ontology:Q1752346 . ?o rdf:type ontology:Q7210356 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { resource:Q3896143 property:P361 ?j . ?j rdf:type ontology:Q1752346 } } . FILTER ( ?a < ?m ) }
action count
action less
action find_tuple_counts
relation part of
type assembly
type political organization
action count
action filter_type
action find
entity Parliament of Nepal
relation part of
type assembly
[{'concept': 'political organization'}, 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?a ) WHERE { ?x property:part_of ?o . ?x rdf:type ontology:assembly . ?o rdf:type ontology:political_organization } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { resource:Parliament_of_Nepal property:part_of ?j . ?j rdf:type ontology:assembly } } . FILTER ( ?a < ?m ) }
[]
assembly political organization
SYSTEM
0
(c(Q7210356),P361,c(Q1752346))
action count
action less
action find_tuple_counts
relation P361
type Q1752346
type Q7210356
action count
action filter_type
action find
entity Q3896143
relation P361
type Q1752346
[ANSWER]
[{'concept': 'Q7210356'}, 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?a ) WHERE { ?x property:P361 ?o . ?x rdf:type ontology:Q1752346 . ?o rdf:type ontology:Q7210356 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { resource:Q3896143 property:P361 ?j . ?j rdf:type ontology:Q1752346 } } . FILTER ( ?a < ?m ) }
0
action count
action less
action find_tuple_counts
relation part of
type assembly
type political organization
action count
action filter_type
action find
entity Parliament of Nepal
relation part of
type assembly
[{'concept': 'political organization'}, 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?a ) WHERE { ?x property:part_of ?o . ?x rdf:type ontology:assembly . ?o rdf:type ontology:political_organization } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { resource:Parliament_of_Nepal property:part_of ?j . ?j rdf:type ontology:assembly } } . FILTER ( ?a < ?m ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1721
P276
Q3914
USER
What is located at Wiesbaden ?
(c(Q3914),P276,Q1721)
action filter_type
action find_reverse
entity Q1721
relation P276
type Q3914
[{'concept': 'Q3914'}, 'P276', 'Q1721']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q3914 . ?k property:P276 resource:Q1721 }
Wiesbaden
action filter_type
action find_reverse
entity Wiesbaden
relation location
type school
[{'concept': 'school'}, 'location', 'Wiesbaden']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:school . ?k property:location resource:Wiesbaden }
[]
school
Q316272
SYSTEM
EBS University of Business and Law
Q316272
(c(Q3914),P276,Q1721)
action filter_type
action find_reverse
entity Q1721
relation P276
type Q3914
[ANSWER] is located at Wiesbaden
[{'concept': 'Q3914'}, 'P276', 'Q1721']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q3914 . ?k property:P276 resource:Q1721 }
EBS University of Business and Law
EBS University of Business and Law is located at Wiesbaden
EBS University of Business and Law
action filter_type
action find_reverse
entity Wiesbaden
relation location
type school
[{'concept': 'school'}, 'location', 'Wiesbaden']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:school . ?k property:location resource:Wiesbaden }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1721
P30
Q2221906
USER
Which geographic location is that city situated in ?
(Q316272,P30,c(Q2221906))
action filter_type
action find
entity Q1721
relation P30
type Q2221906
['Q316272', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?o WHERE { resource:Q1721 property:P30 ?o . ?o rdf:type ontology:Q2221906 }
Wiesbaden
action filter_type
action find
entity Wiesbaden
relation continent
type geographic location
['EBS University of Business and Law', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?o WHERE { resource:Wiesbaden property:continent ?o . ?o rdf:type ontology:geographic_location }
[]
geographic location
Q5401
SYSTEM
Eurasia
Q5401
(Q316272,P30,c(Q2221906))
action filter_type
action find
entity Q1721
relation P30
type Q2221906
That city is situated in [ANSWER]
['Q316272', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?o WHERE { resource:Q1721 property:P30 ?o . ?o rdf:type ontology:Q2221906 }
Eurasia
That city is situated in Eurasia
Eurasia
action filter_type
action find
entity Wiesbaden
relation continent
type geographic location
['EBS University of Business and Law', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?o WHERE { resource:Wiesbaden property:continent ?o . ?o rdf:type ontology:geographic_location }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q7380158 Q1721
P30
Q2221906
USER
Or Runyon Rock?
OR((Q1721,P30,c(Q2221906)), (Q7380158,P30,c(Q2221906)))
action filter_type
action union
action find
entity Q1721
relation P30
action find
entity Q7380158
relation P30
type Q2221906
{'OR': [['Q1721', 'P30', {'concept': 'Q2221906'}], ['Q7380158', 'P30', {'concept': 'Q2221906'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q1721 property:P30 ?z } UNION { resource:Q7380158 property:P30 ?z } } . ?z rdf:type ontology:Q2221906 }
Runyon Rock Wiesbaden
action filter_type
action union
action find
entity Wiesbaden
relation continent
action find
entity Runyon Rock
relation continent
type geographic location
{'OR': [['Wiesbaden', 'continent', {'concept': 'geographic location'}], ['Runyon Rock', 'continent', {'concept': 'geographic location'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Wiesbaden property:continent ?z } UNION { resource:Runyon_Rock property:continent ?z } } . ?z rdf:type ontology:geographic_location }
[]
geographic location
Q51 Q5401
SYSTEM
Antarctica, Eurasia
Q51 Q5401
OR((Q1721,P30,c(Q2221906)), (Q7380158,P30,c(Q2221906)))
action filter_type
action union
action find
entity Q1721
relation P30
action find
entity Q7380158
relation P30
type Q2221906
[ANSWERS]
{'OR': [['Q1721', 'P30', {'concept': 'Q2221906'}], ['Q7380158', 'P30', {'concept': 'Q2221906'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q1721 property:P30 ?z } UNION { resource:Q7380158 property:P30 ?z } } . ?z rdf:type ontology:Q2221906 }
Antarctica Eurasia
Antarctica Eurasia
action filter_type
action union
action find
entity Wiesbaden
relation continent
action find
entity Runyon Rock
relation continent
type geographic location
{'OR': [['Wiesbaden', 'continent', {'concept': 'geographic location'}], ['Runyon Rock', 'continent', {'concept': 'geographic location'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Wiesbaden property:continent ?z } UNION { resource:Runyon_Rock property:continent ?z } } . ?z rdf:type ontology:geographic_location }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P61
Q502895
USER
How many people were the inventors or discoverers of that geographic location ?
(Q51,P61,c(Q502895))
['Q51', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q3459064 property:P61 ?z . ?z rdf:type ontology:Q502895 }
['Antarctica', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Antarctica property:discoverer_or_inventor ?z . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q51
SYSTEM
Did you mean Antarctica ?
(Q51,P61,c(Q502895)) (Q5401,P61,c(Q502895))
[ANSWER]
['Q51', 'P61', {'concept': 'Q502895'}] ['Q5401', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q3459064 property:P61 ?z . ?z rdf:type ontology:Q502895 }
Did you mean Antarctica ?
Antarctica
['Antarctica', 'discoverer or inventor', {'concept': 'common name'}] ['Eurasia', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Antarctica property:discoverer_or_inventor ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q51,P61,c(Q502895))
['Q51', 'P61', {'concept': 'Q502895'}]
['Antarctica', 'discoverer or inventor', {'concept': 'common name'}]
[]
SYSTEM
2
Q76754 Q186203
(Q51,P61,c(Q502895))
[ANSWER]
['Q51', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q3459064 property:P61 ?z . ?z rdf:type ontology:Q502895 }
Fabian Gottlieb von Bellingshausen Mikhail Lazarev
2
['Antarctica', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Antarctica property:discoverer_or_inventor ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P706
Q56061 Q2221906
USER
Which administrative territories are max number of geographic locations located on ?
(c(Q2221906),P706,Q1073089)
action argmax
action find_reverse_tuple_counts
relation P706
type Q56061
type Q2221906
[{'concept': 'Q2221906'}, 'P706', 'Q1073089']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?z ) { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?e ) WHERE { ?w property:P706 ?a . ?a rdf:type ontology:Q56061 . ?w rdf:type ontology:Q2221906 } GROUP BY ?a } } . { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?x ) WHERE { ?c property:P706 ?t . ?c rdf:type ontology:Q2221906 . ?t rdf:type ontology:Q56061 } GROUP BY ?t } . FILTER ( ?x = ?z ) }
action argmax
action find_reverse_tuple_counts
relation located on terrain feature
type administrative territorial entity
type geographic location
[{'concept': 'geographic location'}, 'located on terrain feature', 'Chimanimani']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?z ) { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?e ) WHERE { ?w property:located_on_terrain_feature ?a . ?a rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:geographic_location } GROUP BY ?a } } . { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?x ) WHERE { ?c property:located_on_terrain_feature ?t . ?c rdf:type ontology:geographic_location . ?t rdf:type ontology:administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?x = ?z ) }
[]
administrative territorial entity geographic location
Q105206
SYSTEM
Bukovina
Q105206
(c(Q2221906),P706,Q1073089)
action argmax
action find_reverse_tuple_counts
relation P706
type Q56061
type Q2221906
Located on the [ANSWER]
[{'concept': 'Q2221906'}, 'P706', 'Q1073089']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?z ) { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?e ) WHERE { ?w property:P706 ?a . ?a rdf:type ontology:Q56061 . ?w rdf:type ontology:Q2221906 } GROUP BY ?a } } . { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?x ) WHERE { ?c property:P706 ?t . ?c rdf:type ontology:Q2221906 . ?t rdf:type ontology:Q56061 } GROUP BY ?t } . FILTER ( ?x = ?z ) }
Bukovina
Located on the Bukovina
Bukovina
action argmax
action find_reverse_tuple_counts
relation located on terrain feature
type administrative territorial entity
type geographic location
[{'concept': 'geographic location'}, 'located on terrain feature', 'Chimanimani']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?z ) { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?e ) WHERE { ?w property:located_on_terrain_feature ?a . ?a rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:geographic_location } GROUP BY ?a } } . { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?x ) WHERE { ?c property:located_on_terrain_feature ?t . ?c rdf:type ontology:geographic_location . ?t rdf:type ontology:administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?x = ?z ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P706
Q56061 Q811979 Q44539
USER
Which administrative territories are greater number of architectural structures or temples located on than that administrative territory ?
(c(Q811979)|c(Q44539),P706,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P706
type Q56061
type Q811979
action find_reverse_tuple_counts
relation P706
type Q56061
type Q44539
action count
action filter_multi_types
action find_reverse
entity Q105206
relation P706
type Q811979
type Q44539
[[{'concept': 'Q811979'}, {'concept': 'Q44539'}], 'P706', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?d ) WHERE { { ?v property:P706 ?z . ?z rdf:type ontology:Q56061 . ?v rdf:type ontology:Q44539 } UNION { ?v property:P706 ?z . ?z rdf:type ontology:Q56061 . ?v rdf:type ontology:Q811979 } } GROUP BY ?z } . FILTER ( ?d > ?e ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { ?b property:P706 resource:Q105206 . { ?b rdf:type ?x . VALUES ( ?x ) { ( ontology:Q811979 ) ( ontology:Q44539 ) } } } } }
action greater
action union
action find_reverse_tuple_counts
relation located on terrain feature
type administrative territorial entity
type architectural structure
action find_reverse_tuple_counts
relation located on terrain feature
type administrative territorial entity
type temple
action count
action filter_multi_types
action find_reverse
entity Bukovina
relation located on terrain feature
type architectural structure
type temple
[[{'concept': 'architectural structure'}, {'concept': 'temple'}], 'located on terrain feature', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?d ) WHERE { { ?v property:located_on_terrain_feature ?z . ?z rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:temple } UNION { ?v property:located_on_terrain_feature ?z . ?z rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:architectural_structure } } GROUP BY ?z } . FILTER ( ?d > ?e ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { ?b property:located_on_terrain_feature resource:Bukovina . { ?b rdf:type ?x . VALUES ( ?x ) { ( ontology:architectural_structure ) ( ontology:temple ) } } } } }
[]
administrative territorial entity architectural structure temple
Q2807 Q90 Q1754
SYSTEM
Madrid, Paris, Stockholm
Q322361 Q1025947 Q21176 Q1135211 Q836960 Q3219865 Q1085963 Q463937 Q572041 Q904462 Q2255839 Q2807 Q1754 Q90 Q1921029 Q2622689 Q740149 Q1043368 Q831527 Q189059
(c(Q811979)|c(Q44539),P706,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P706
type Q56061
type Q811979
action find_reverse_tuple_counts
relation P706
type Q56061
type Q44539
action count
action filter_multi_types
action find_reverse
entity Q105206
relation P706
type Q811979
type Q44539
[ANSWERS] are greater number of architectural structures or temples located on than that administrative territory
[[{'concept': 'Q811979'}, {'concept': 'Q44539'}], 'P706', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?d ) WHERE { { ?v property:P706 ?z . ?z rdf:type ontology:Q56061 . ?v rdf:type ontology:Q44539 } UNION { ?v property:P706 ?z . ?z rdf:type ontology:Q56061 . ?v rdf:type ontology:Q811979 } } GROUP BY ?z } . FILTER ( ?d > ?e ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { ?b property:P706 resource:Q105206 . { ?b rdf:type ?x . VALUES ( ?x ) { ( ontology:Q811979 ) ( ontology:Q44539 ) } } } } }
Ribe Watson Lake Viborg Agios Konstantinos, East Attica Rødding Laurium Franklin Saint Thomas Antequera Riddarholmen Uitkerke Madrid Stockholm Paris Menzenschwand Skærbæk Södermalm Stora Essingen Djurgården Mytilene
Madrid, Paris and Stockholm are greater number of architectural structures or temples located on than that administrative territory
Madrid Paris Stockholm
action greater
action union
action find_reverse_tuple_counts
relation located on terrain feature
type administrative territorial entity
type architectural structure
action find_reverse_tuple_counts
relation located on terrain feature
type administrative territorial entity
type temple
action count
action filter_multi_types
action find_reverse
entity Bukovina
relation located on terrain feature
type architectural structure
type temple
[[{'concept': 'architectural structure'}, {'concept': 'temple'}], 'located on terrain feature', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?d ) WHERE { { ?v property:located_on_terrain_feature ?z . ?z rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:temple } UNION { ?v property:located_on_terrain_feature ?z . ?z rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:architectural_structure } } GROUP BY ?z } . FILTER ( ?d > ?e ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { ?b property:located_on_terrain_feature resource:Bukovina . { ?b rdf:type ?x . VALUES ( ?x ) { ( ontology:architectural_structure ) ( ontology:temple ) } } } } }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P417
Q1445650 Q56061
USER
Which administrative territories have greater number of holidays as their patron saint than that administrative territory ?
(c(Q56061),P417,c(Q1445650))
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?z WHERE { ?z property:Q28914 ?y . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 }
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?z WHERE { ?z property:patron_saint ?y . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday }
[]
holiday administrative territorial entity
Comparative|More/Less|Single entity type|Clarification
Q1754
SYSTEM
Did you mean Stockholm ?
(c(Q56061),P417,c(Q1445650))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?z WHERE { ?z property:Q28914 ?y . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 }
Did you mean Stockholm ?
Stockholm
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?z WHERE { ?z property:patron_saint ?y . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday }
[]
Comparative Reasoning (All)
USER
No, I meant Paris. Could you tell me the answer for that?
(c(Q56061),P417,c(Q1445650))
Q90
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
[]
Q433066 Q428018 Q495798
SYSTEM
Moos in Passeier, Mölten, Brolo
Q491588 Q495798 Q428018 Q52215 Q433066
(c(Q56061),P417,c(Q1445650))
[ANSWERS] have greater number of holidays as their patron saint than that administrative territory
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?z WHERE { ?z property:Q28914 ?y . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 }
Camporeale Brolo Mölten Tuglie Moos in Passeier
Moos in Passeier, Mölten and Brolo have greater number of holidays as their patron saint than that administrative territory
Moos in Passeier Mölten Brolo
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?z WHERE { ?z property:patron_saint ?y . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q502895 Q1445650 Q56061
USER
Which administrative territories have adopted approximately 1 people or holidays as patron saint ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
value 1
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?j WHERE { FILTER ( ?q = 1 ) . { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?q ) WHERE { { ?j property:P417 ?x . ?j rdf:type ontology:Q56061 . ?x rdf:type ontology:Q502895 } UNION { ?j property:P417 ?x . ?j rdf:type ontology:Q56061 . ?x rdf:type ontology:Q1445650 } } GROUP BY ?j } }
action approx
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
value 1
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?j WHERE { FILTER ( ?q = 1 ) . { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?q ) WHERE { { ?j property:patron_saint ?x . ?j rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:common_name } UNION { ?j property:patron_saint ?x . ?j rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:holiday } } GROUP BY ?j } }
[]
common name holiday administrative territorial entity
Q649 Q2807 Q490
SYSTEM
Moscow, Madrid, Milan
Q5818 Q187352 Q11974 Q40801 Q212841 Q454875 Q14209773 Q34111 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q2028 Q929022 Q641 Q46165 Q649 Q58463 Q491588 Q3395964 Q73489 Q53825 Q200908 Q15090 Q36647 Q13375 Q15088 Q10305 Q53265 Q6340 Q101229 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q495798 Q82208 Q3557616 Q374108 Q3562704 Q428018 Q90 Q431389 Q5991813 Q380189 Q617 Q470461 Q733574 Q932648 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q51400 Q504216 Q51315 Q210470 Q11959 Q52215 Q15095 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q15487 Q244207 Q1957 Q50074 Q1897 Q433066 Q46864
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
value 1
[ANSWERS] have adopted approximately 1 people or holidays as patron saint
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?j WHERE { FILTER ( ?q = 1 ) . { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?q ) WHERE { { ?j property:P417 ?x . ?j rdf:type ontology:Q56061 . ?x rdf:type ontology:Q502895 } UNION { ?j property:P417 ?x . ?j rdf:type ontology:Q56061 . ?x rdf:type ontology:Q1445650 } } GROUP BY ?j } }
Córdoba Kavala Las Palmas de Gran Canaria Borca di Cadore Drama Amarante Municipality San Lorenzo de' Picenardi Pozzallo Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Verona Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Camporeale Koufalia Camerino Altilia Rethymno Lleida Cork Pisa Tarragona Zaragoza Gemona del Friuli Castel Giorgio Martinengo Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brolo Kastritsa Platres Altrei Molista Mölten Paris Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Istiaia Didymoteicho Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Spoltore St. Martin in Passeier Villamagna Katerini Alicante Tuglie Albacete Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Berga Campione d'Italia Vologda Castellafiume Cagliari Moos in Passeier Arcugnano
Moscow, Madrid and Milan have adopted approximately 1 people or holidays as patron saint
Moscow Madrid Milan
action approx
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
value 1
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?j WHERE { FILTER ( ?q = 1 ) . { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?q ) WHERE { { ?j property:patron_saint ?x . ?j rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:common_name } UNION { ?j property:patron_saint ?x . ?j rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:holiday } } GROUP BY ?j } }
[]