Simple Question (Direct)
Simple Question
Q66584
P641
Q31629
USER
Which types of sport did Hanns Braun participate in ?
(Q66584,P641,c(Q31629))
action filter_type
action find
entity Q66584
relation P641
type Q31629
['Q66584', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q31629 . resource:Q66584 property:P641 ?o }
Hanns Braun
action filter_type
action find
entity Hanns Braun
relation sport
type type of sport
['Hanns Braun', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:type_of_sport . resource:Hanns_Braun property:sport ?o }
[]
type of sport
Q271008 Q542
SYSTEM
800 metres, athletics
Q271008 Q542
(Q66584,P641,c(Q31629))
action filter_type
action find
entity Q66584
relation P641
type Q31629
Hanns Braun participated in [ANSWERS]
['Q66584', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q31629 . resource:Q66584 property:P641 ?o }
800 metres athletics
Hanns Braun participated in 800 metres and athletics
800 metres athletics
action filter_type
action find
entity Hanns Braun
relation sport
type type of sport
['Hanns Braun', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:type_of_sport . resource:Hanns_Braun property:sport ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q66584
P607
Q198
USER
What was was that person a part of ?
(Q271008,P607,c(Q198)) (Q542,P607,c(Q198))
action filter_type
action find
entity Q66584
relation P607
type Q198
['Q271008', 'P607', {'concept': 'Q198'}] ['Q542', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?v WHERE { resource:Q66584 property:P607 ?v . ?v rdf:type ontology:Q198 }
Hanns Braun
action filter_type
action find
entity Hanns Braun
relation conflict
type war
['800 metres', 'conflict', {'concept': 'war'}] ['athletics', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?v WHERE { resource:Hanns_Braun property:conflict ?v . ?v rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q271008,P607,c(Q198)) (Q542,P607,c(Q198))
action filter_type
action find
entity Q66584
relation P607
type Q198
That person was a part of [ANSWER]
['Q271008', 'P607', {'concept': 'Q198'}] ['Q542', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?v WHERE { resource:Q66584 property:P607 ?v . ?v rdf:type ontology:Q198 }
World War I
That person was a part of World War I
World War I
action filter_type
action find
entity Hanns Braun
relation conflict
type war
['800 metres', 'conflict', {'concept': 'war'}] ['athletics', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?v WHERE { resource:Hanns_Braun property:conflict ?v . ?v rdf:type ontology:war }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1444
Q486972 Q31629
USER
Which human settlements marks the end of journey for min number of types of sport ?
(c(Q31629),P1444,Q427850)
action argmin
action find_reverse_tuple_counts
relation P1444
type Q486972
type Q31629
[{'concept': 'Q31629'}, 'P1444', 'Q427850']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?t ) { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:P1444 ?d . ?d rdf:type ontology:Q486972 . ?y rdf:type ontology:Q31629 } GROUP BY ?d } } . { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?w ) WHERE { ?s property:P1444 ?q . ?s rdf:type ontology:Q31629 . ?q rdf:type ontology:Q486972 } GROUP BY ?q } . FILTER ( ?w = ?t ) }
action argmin
action find_reverse_tuple_counts
relation destination point
type human settlement
type type of sport
[{'concept': 'type of sport'}, 'destination point', 'Martell']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?t ) { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:destination_point ?d . ?d rdf:type ontology:human_settlement . ?y rdf:type ontology:type_of_sport } GROUP BY ?d } } . { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?w ) WHERE { ?s property:destination_point ?q . ?s rdf:type ontology:type_of_sport . ?q rdf:type ontology:human_settlement } GROUP BY ?q } . FILTER ( ?w = ?t ) }
[]
human settlement type of sport
Q1055 Q3777 Q427850
SYSTEM
Hamburg, Ouagadougou, Martell
Q730642 Q3777 Q303066 Q7385194 Q1087543 Q1055 Q1640374 Q427850
(c(Q31629),P1444,Q427850)
action argmin
action find_reverse_tuple_counts
relation P1444
type Q486972
type Q31629
[ANSWERS] mark the end of journey for min number of types of sport
[{'concept': 'Q31629'}, 'P1444', 'Q427850']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?t ) { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:P1444 ?d . ?d rdf:type ontology:Q486972 . ?y rdf:type ontology:Q31629 } GROUP BY ?d } } . { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?w ) WHERE { ?s property:P1444 ?q . ?s rdf:type ontology:Q31629 . ?q rdf:type ontology:Q486972 } GROUP BY ?q } . FILTER ( ?w = ?t ) }
Glennallen Ouagadougou Aars Rymanów-Zdrój Montecampione Hamburg Paxson Martell
Hamburg, Ouagadougou and Martell mark the end of journey for min number of types of sport
Hamburg Ouagadougou Martell
action argmin
action find_reverse_tuple_counts
relation destination point
type human settlement
type type of sport
[{'concept': 'type of sport'}, 'destination point', 'Martell']
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MIN ( ?o ) AS ?t ) { SELECT DISTINCT ?d ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:destination_point ?d . ?d rdf:type ontology:human_settlement . ?y rdf:type ontology:type_of_sport } GROUP BY ?d } } . { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?w ) WHERE { ?s property:destination_point ?q . ?s rdf:type ontology:type_of_sport . ?q rdf:type ontology:human_settlement } GROUP BY ?q } . FILTER ( ?w = ?t ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q263707 Q66584
P19
Q56061
USER
Which administrative territories were Hanns Braun or ODB born in ?
OR((Q66584,P19,c(Q56061)), (Q263707,P19,c(Q56061)))
action filter_type
action union
action find
entity Q66584
relation P19
action find
entity Q263707
relation P19
type Q56061
{'OR': [['Q66584', 'P19', {'concept': 'Q56061'}], ['Q263707', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q66584 property:P19 ?i } UNION { resource:Q263707 property:P19 ?i } } . ?i rdf:type ontology:Q56061 }
ODB Hanns Braun
action filter_type
action union
action find
entity Hanns Braun
relation place of birth
action find
entity ODB
relation place of birth
type administrative territorial entity
{'OR': [['Hanns Braun', 'place of birth', {'concept': 'administrative territorial entity'}], ['ODB', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Hanns_Braun property:place_of_birth ?i } UNION { resource:ODB property:place_of_birth ?i } } . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1726 Q23197
SYSTEM
Munich, Nashville
Q1726 Q23197
OR((Q66584,P19,c(Q56061)), (Q263707,P19,c(Q56061)))
action filter_type
action union
action find
entity Q66584
relation P19
action find
entity Q263707
relation P19
type Q56061
Hanns Braun or ODB were born in [ANSWERS]
{'OR': [['Q66584', 'P19', {'concept': 'Q56061'}], ['Q263707', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q66584 property:P19 ?i } UNION { resource:Q263707 property:P19 ?i } } . ?i rdf:type ontology:Q56061 }
Munich Nashville
Hanns Braun or ODB were born in Munich and Nashville
Munich Nashville
action filter_type
action union
action find
entity Hanns Braun
relation place of birth
action find
entity ODB
relation place of birth
type administrative territorial entity
{'OR': [['Hanns Braun', 'place of birth', {'concept': 'administrative territorial entity'}], ['ODB', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Hanns_Braun property:place_of_birth ?i } UNION { resource:ODB property:place_of_birth ?i } } . ?i rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P190
Q56061 Q20667921
USER
How many administrative territories or french administrative divisions are the sister cities of that administrative territory ?
(Q23197,P190,c(Q56061)) (Q23197,P190,c(Q20667921)) (Q1726,P190,c(Q56061)) (Q1726,P190,c(Q20667921)) (Q23197,P190,c(Q56061)) (Q23197,P190,c(Q20667921))
['Q23197', 'P190', {'concept': 'Q56061'}] ['Q23197', 'P190', {'concept': 'Q20667921'}] ['Q1726', 'P190', {'concept': 'Q56061'}] ['Q1726', 'P190', {'concept': 'Q20667921'}] ['Q23197', 'P190', {'concept': 'Q56061'}] ['Q23197', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q4355437 property:P190 ?z } UNION { resource:Q4355437 property:P190 ?y } UNION { resource:Q14457335 property:P190 ?z } UNION { resource:Q14457335 property:P190 ?y } UNION { resource:Q4355437 property:P190 ?z } UNION { resource:Q4355437 property:P190 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q20667921 }
['Nashville', 'sister city', {'concept': 'administrative territorial entity'}] ['Nashville', 'sister city', {'concept': 'type of french administrative division'}] ['Munich', 'sister city', {'concept': 'administrative territorial entity'}] ['Munich', 'sister city', {'concept': 'type of french administrative division'}] ['Nashville', 'sister city', {'concept': 'administrative territorial entity'}] ['Nashville', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Nashville property:sister_city ?z } UNION { resource:Nashville property:sister_city ?y } UNION { resource:Munich property:sister_city ?z } UNION { resource:Munich property:sister_city ?y } UNION { resource:Nashville property:sister_city ?z } UNION { resource:Nashville property:sister_city ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:type_of_french_administrative_division }
[]
administrative territorial entity type of french administrative division
Quantitative|Count|Mult. entity type|Clarification
Q23197
SYSTEM
Did you mean Nashville ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q4355437 property:P190 ?z } UNION { resource:Q4355437 property:P190 ?y } UNION { resource:Q14457335 property:P190 ?z } UNION { resource:Q14457335 property:P190 ?y } UNION { resource:Q4355437 property:P190 ?z } UNION { resource:Q4355437 property:P190 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q20667921 }
Did you mean Nashville ?
Nashville
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Nashville property:sister_city ?z } UNION { resource:Nashville property:sister_city ?y } UNION { resource:Munich property:sister_city ?z } UNION { resource:Munich property:sister_city ?y } UNION { resource:Nashville property:sister_city ?z } UNION { resource:Nashville property:sister_city ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q23197,P190,c(Q56061)) (Q23197,P190,c(Q20667921)) (Q1726,P190,c(Q56061)) (Q1726,P190,c(Q20667921)) (Q23197,P190,c(Q56061)) (Q23197,P190,c(Q20667921))
['Q23197', 'P190', {'concept': 'Q56061'}] ['Q23197', 'P190', {'concept': 'Q20667921'}] ['Q1726', 'P190', {'concept': 'Q56061'}] ['Q1726', 'P190', {'concept': 'Q20667921'}] ['Q23197', 'P190', {'concept': 'Q56061'}] ['Q23197', 'P190', {'concept': 'Q20667921'}]
['Nashville', 'sister city', {'concept': 'administrative territorial entity'}] ['Nashville', 'sister city', {'concept': 'type of french administrative division'}] ['Munich', 'sister city', {'concept': 'administrative territorial entity'}] ['Munich', 'sister city', {'concept': 'type of french administrative division'}] ['Nashville', 'sister city', {'concept': 'administrative territorial entity'}] ['Nashville', 'sister city', {'concept': 'type of french administrative division'}]
[]
SYSTEM
4
Q44237 Q41185 Q1733 Q48370
(Q23197,P190,c(Q56061)) (Q23197,P190,c(Q20667921)) (Q1726,P190,c(Q56061)) (Q1726,P190,c(Q20667921)) (Q23197,P190,c(Q56061)) (Q23197,P190,c(Q20667921))
[ANSWER]
['Q23197', 'P190', {'concept': 'Q56061'}] ['Q23197', 'P190', {'concept': 'Q20667921'}] ['Q1726', 'P190', {'concept': 'Q56061'}] ['Q1726', 'P190', {'concept': 'Q20667921'}] ['Q23197', 'P190', {'concept': 'Q56061'}] ['Q23197', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q4355437 property:P190 ?z } UNION { resource:Q4355437 property:P190 ?y } UNION { resource:Q14457335 property:P190 ?z } UNION { resource:Q14457335 property:P190 ?y } UNION { resource:Q4355437 property:P190 ?z } UNION { resource:Q4355437 property:P190 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q20667921 }
Mendoza Caen Magdeburg Manchester
4
['Nashville', 'sister city', {'concept': 'administrative territorial entity'}] ['Nashville', 'sister city', {'concept': 'type of french administrative division'}] ['Munich', 'sister city', {'concept': 'administrative territorial entity'}] ['Munich', 'sister city', {'concept': 'type of french administrative division'}] ['Nashville', 'sister city', {'concept': 'administrative territorial entity'}] ['Nashville', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Nashville property:sister_city ?z } UNION { resource:Nashville property:sister_city ?y } UNION { resource:Munich property:sister_city ?z } UNION { resource:Munich property:sister_city ?y } UNION { resource:Nashville property:sister_city ?z } UNION { resource:Nashville property:sister_city ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1726
P6
Q502895
USER
Which people are the head of government of Munich ?
(Q1726,P6,c(Q502895))
action filter_type
action find
entity Q1726
relation P6
type Q502895
['Q1726', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q1726 property:P6 ?q . ?q rdf:type ontology:Q502895 }
Munich
action filter_type
action find
entity Munich
relation head of government
type common name
['Munich', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Munich property:head_of_government ?q . ?q rdf:type ontology:common_name }
[]
common name
Q1352561 Q45102 Q108997
SYSTEM
Erich Kiesl, Christian Ude, Georg Kronawitter
Q1222671 Q108997 Q45102 Q1352561
(Q1726,P6,c(Q502895))
action filter_type
action find
entity Q1726
relation P6
type Q502895
[ANSWERS] are the head of government of Munich
['Q1726', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q1726 property:P6 ?q . ?q rdf:type ontology:Q502895 }
Dieter Reiter Georg Kronawitter Christian Ude Erich Kiesl
Erich Kiesl, Christian Ude and Georg Kronawitter are the head of government of Munich
Erich Kiesl Christian Ude Georg Kronawitter
action filter_type
action find
entity Munich
relation head of government
type common name
['Munich', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Munich property:head_of_government ?q . ?q rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q3605473 Q1352561
P106
Q12737077
USER
Which occupations are the professions of Erich Kiesl and Adolfo Salminci ?
AND((Q1352561,P106,c(Q12737077)), (Q3605473,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q1352561
relation P106
action find
entity Q3605473
relation P106
type Q12737077
{'AND': [['Q1352561', 'P106', {'concept': 'Q12737077'}], ['Q3605473', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?z WHERE { resource:Q1352561 property:P106 ?z . resource:Q3605473 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
Adolfo Salminci Erich Kiesl
action filter_type
action intersection
action find
entity Erich Kiesl
relation occupation
action find
entity Adolfo Salminci
relation occupation
type occupation
{'AND': [['Erich Kiesl', 'occupation', {'concept': 'occupation'}], ['Adolfo Salminci', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?z WHERE { resource:Erich_Kiesl property:occupation ?z . resource:Adolfo_Salminci property:occupation ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
AND((Q1352561,P106,c(Q12737077)), (Q3605473,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q1352561
relation P106
action find
entity Q3605473
relation P106
type Q12737077
The professions of Erich Kiesl and Adolfo Salminci are a [ANSWER]
{'AND': [['Q1352561', 'P106', {'concept': 'Q12737077'}], ['Q3605473', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?z WHERE { resource:Q1352561 property:P106 ?z . resource:Q3605473 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
politician
The professions of Erich Kiesl and Adolfo Salminci are a politician
politician
action filter_type
action intersection
action find
entity Erich Kiesl
relation occupation
action find
entity Adolfo Salminci
relation occupation
type occupation
{'AND': [['Erich Kiesl', 'occupation', {'concept': 'occupation'}], ['Adolfo Salminci', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?z WHERE { resource:Erich_Kiesl property:occupation ?z . resource:Adolfo_Salminci property:occupation ?z . ?z rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q82955 Q3052257
P106
Q502895
USER
Does Emile Carpentier-Bissé have career as that occupation ?
(Q3052257,P106,Q82955)
action is_in
entity Q82955
action find
entity Q3052257
relation P106
['Q3052257', 'P106', 'Q82955']
ASK WHERE { resource:Q3052257 property:P106 resource:Q82955 }
politician Emile Carpentier-Bissé
action is_in
entity politician
action find
entity Emile Carpentier-Bissé
relation occupation
['Emile Carpentier-Bissé', 'occupation', 'politician']
ASK WHERE { resource:Emile_Carpentier-Bissé property:occupation resource:politician }
[]
common name
SYSTEM
YES
(Q3052257,P106,Q82955)
action is_in
entity Q82955
action find
entity Q3052257
relation P106
[ANSWER]
['Q3052257', 'P106', 'Q82955']
ASK WHERE { resource:Q3052257 property:P106 resource:Q82955 }
Yes
action is_in
entity politician
action find
entity Emile Carpentier-Bissé
relation occupation
['Emile Carpentier-Bissé', 'occupation', 'politician']
ASK WHERE { resource:Emile_Carpentier-Bissé property:occupation resource:politician }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q442166 Q3605473
P27
Q15617994
USER
Which administrative territories are Adolfo Salminci or Lynne Frederick a civilian of ?
OR((Q3605473,P27,c(Q15617994)), (Q442166,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3605473
relation P27
action find
entity Q442166
relation P27
type Q15617994
{'OR': [['Q3605473', 'P27', {'concept': 'Q15617994'}], ['Q442166', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?n ) { ( resource:Q3605473 ) ( resource:Q442166 ) } . ?n property:P27 ?x } . ?x rdf:type ontology:Q15617994 }
Lynne Frederick Adolfo Salminci
action filter_type
action union
action find
entity Adolfo Salminci
relation country of citizenship
action find
entity Lynne Frederick
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Adolfo Salminci', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Lynne Frederick', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?n ) { ( resource:Adolfo_Salminci ) ( resource:Lynne_Frederick ) } . ?n property:country_of_citizenship ?x } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q145
SYSTEM
Italy, United Kingdom
Q38 Q145
OR((Q3605473,P27,c(Q15617994)), (Q442166,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3605473
relation P27
action find
entity Q442166
relation P27
type Q15617994
[ANSWERS] are Adolfo Salminci or Lynne Frederick a civilian of
{'OR': [['Q3605473', 'P27', {'concept': 'Q15617994'}], ['Q442166', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?n ) { ( resource:Q3605473 ) ( resource:Q442166 ) } . ?n property:P27 ?x } . ?x rdf:type ontology:Q15617994 }
Italy United Kingdom
Italy and United Kingdom are Adolfo Salminci or Lynne Frederick a civilian of
Italy United Kingdom
action filter_type
action union
action find
entity Adolfo Salminci
relation country of citizenship
action find
entity Lynne Frederick
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Adolfo Salminci', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Lynne Frederick', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?n ) { ( resource:Adolfo_Salminci ) ( resource:Lynne_Frederick ) } . ?n property:country_of_citizenship ?x } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with atmost 48 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 48
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:P530 ?h . ?h rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?q <= 48 ) }
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 48
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?q <= 48 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
164
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 48
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:P530 ?h . ?h rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?q <= 48 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
164
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 48
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?q <= 48 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P35
Q502895
USER
Which people are the heads of state of United Kingdom ?
(Q145,P35,c(Q502895))
action filter_type
action find
entity Q145
relation P35
type Q502895
['Q145', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q145 property:P35 ?o . ?o rdf:type ontology:Q502895 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation head of state
type common name
['United Kingdom', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:United_Kingdom property:head_of_state ?o . ?o rdf:type ontology:common_name }
[]
common name
Q9682 Q280856 Q269412
SYSTEM
Elizabeth II, George VI, George V
Q590227 Q269412 Q280856 Q9682
(Q145,P35,c(Q502895))
action filter_type
action find
entity Q145
relation P35
type Q502895
[ANSWERS] are the heads of state of United Kingdom
['Q145', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q145 property:P35 ?o . ?o rdf:type ontology:Q502895 }
Edward VIII George V George VI Elizabeth II
Elizabeth II, George VI and George V are the heads of state of United Kingdom
Elizabeth II George VI George V
action filter_type
action find
entity United Kingdom
relation head of state
type common name
['United Kingdom', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:United_Kingdom property:head_of_state ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P194
Q1752346
USER
Which assembly governs United Kingdom ?
(Q145,P194,c(Q1752346))
action filter_type
action find
entity Q145
relation P194
type Q1752346
['Q145', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?g WHERE { resource:Q145 property:P194 ?g . ?g rdf:type ontology:Q1752346 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation legislative body
type assembly
['United Kingdom', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?g WHERE { resource:United_Kingdom property:legislative_body ?g . ?g rdf:type ontology:assembly }
[]
assembly
Q11010
SYSTEM
Parliament of the United Kingdom
Q11010
(Q145,P194,c(Q1752346))
action filter_type
action find
entity Q145
relation P194
type Q1752346
[ANSWER] governs United Kingdom
['Q145', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?g WHERE { resource:Q145 property:P194 ?g . ?g rdf:type ontology:Q1752346 }
Parliament of the United Kingdom
Parliament of the United Kingdom governs United Kingdom
Parliament of the United Kingdom
action filter_type
action find
entity United Kingdom
relation legislative body
type assembly
['United Kingdom', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?g WHERE { resource:United_Kingdom property:legislative_body ?g . ?g rdf:type ontology:assembly }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P805
Q15617994 Q1752346
USER
Which administrative territories are max number of assemblies a subject of ?
(c(Q1752346),P805,Q856076)
action argmax
action find_reverse_tuple_counts
relation P805
type Q15617994
type Q1752346
[{'concept': 'Q1752346'}, 'P805', 'Q856076']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?y ) { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?j ) WHERE { ?g rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1752346 . ?r property:P805 ?g } GROUP BY ?g } } . { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?v ) WHERE { ?n property:P805 ?m . ?m rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q1752346 } GROUP BY ?m } . FILTER ( ?v = ?y ) }
action argmax
action find_reverse_tuple_counts
relation subject of
type designation for an administrative territorial entity
type assembly
[{'concept': 'assembly'}, 'subject of', 'municipality of Finland']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?y ) { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?j ) WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:assembly . ?r property:subject_of ?g } GROUP BY ?g } } . { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?v ) WHERE { ?n property:subject_of ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:assembly } GROUP BY ?m } . FILTER ( ?v = ?y ) }
[]
designation for an administrative territorial entity assembly
Q127448
SYSTEM
municipality of Sweden
Q127448
(c(Q1752346),P805,Q856076)
action argmax
action find_reverse_tuple_counts
relation P805
type Q15617994
type Q1752346
The [ANSWER] is max number of assemblies a subject of
[{'concept': 'Q1752346'}, 'P805', 'Q856076']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?y ) { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?j ) WHERE { ?g rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1752346 . ?r property:P805 ?g } GROUP BY ?g } } . { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?v ) WHERE { ?n property:P805 ?m . ?m rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q1752346 } GROUP BY ?m } . FILTER ( ?v = ?y ) }
municipality of Sweden
The municipality of Sweden is max number of assemblies a subject of
municipality of Sweden
action argmax
action find_reverse_tuple_counts
relation subject of
type designation for an administrative territorial entity
type assembly
[{'concept': 'assembly'}, 'subject of', 'municipality of Finland']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?y ) { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?j ) WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:assembly . ?r property:subject_of ?g } GROUP BY ?g } } . { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?v ) WHERE { ?n property:subject_of ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:assembly } GROUP BY ?m } . FILTER ( ?v = ?y ) }
[]