Simple Question (Direct)
Simple Question
Q13474753
P39
Q12737077
USER
What was the position held by Harold Edward Elliott ?
(Q13474753,P39,c(Q12737077))
action filter_type
action find
entity Q13474753
relation P39
type Q12737077
['Q13474753', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q13474753 property:P39 ?s . ?s rdf:type ontology:Q12737077 }
Harold Edward Elliott
action filter_type
action find
entity Harold Edward Elliott
relation position held
type occupation
['Harold Edward Elliott', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Harold_Edward_Elliott property:position_held ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q6814428
SYSTEM
member of the Australian Senate
Q6814428
(Q13474753,P39,c(Q12737077))
action filter_type
action find
entity Q13474753
relation P39
type Q12737077
The position held by Harold Edward Elliott was a [ANSWER]
['Q13474753', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q13474753 property:P39 ?s . ?s rdf:type ontology:Q12737077 }
member of the Australian Senate
The position held by Harold Edward Elliott was a member of the Australian Senate
member of the Australian Senate
action filter_type
action find
entity Harold Edward Elliott
relation position held
type occupation
['Harold Edward Elliott', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Harold_Edward_Elliott property:position_held ?s . ?s rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6814428
P17
Q1048835
USER
Which political territory does that occupation belong to ?
(Q6814428,P17,c(Q1048835))
action filter_type
action find
entity Q6814428
relation P17
type Q1048835
['Q6814428', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q6814428 property:P17 ?w . ?w rdf:type ontology:Q1048835 }
member of the Australian Senate
action filter_type
action find
entity member of the Australian Senate
relation country
type political territorial entity
['member of the Australian Senate', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:member_of_the_Australian_Senate property:country ?w . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
(Q6814428,P17,c(Q1048835))
action filter_type
action find
entity Q6814428
relation P17
type Q1048835
That occupation belongs to the [ANSWER]
['Q6814428', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q6814428 property:P17 ?w . ?w rdf:type ontology:Q1048835 }
Australia
That occupation belongs to the Australia
Australia
action filter_type
action find
entity member of the Australian Senate
relation country
type political territorial entity
['member of the Australian Senate', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:member_of_the_Australian_Senate property:country ?w . ?w rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3900830 Q6814428
P27 P1001
Q1048835
USER
Which political territories apply to jurisdiction of member of the Australian Senate and do Peter Buljan belong to ?
AND((Q6814428,P1001,c(Q1048835)), (Q3900830,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q6814428
relation P1001
action find
entity Q3900830
relation P27
type Q1048835
{'AND': [['Q6814428', 'P1001', {'concept': 'Q1048835'}], ['Q3900830', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { resource:Q6814428 property:P1001 ?u . resource:Q3900830 property:P27 ?u . ?u rdf:type ontology:Q1048835 }
Peter Buljan member of the Australian Senate
action filter_type
action intersection
action find
entity member of the Australian Senate
relation applies to jurisdiction
action find
entity Peter Buljan
relation country of citizenship
type political territorial entity
{'AND': [['member of the Australian Senate', 'applies to jurisdiction', {'concept': 'political territorial entity'}], ['Peter Buljan', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { resource:member_of_the_Australian_Senate property:applies_to_jurisdiction ?u . resource:Peter_Buljan property:country_of_citizenship ?u . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
AND((Q6814428,P1001,c(Q1048835)), (Q3900830,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q6814428
relation P1001
action find
entity Q3900830
relation P27
type Q1048835
[ANSWER] apply to jurisdiction of member of the [ANSWER]n Senate and do Peter Buljan belong to
{'AND': [['Q6814428', 'P1001', {'concept': 'Q1048835'}], ['Q3900830', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { resource:Q6814428 property:P1001 ?u . resource:Q3900830 property:P27 ?u . ?u rdf:type ontology:Q1048835 }
Australia
Australia apply to jurisdiction of member of the Australian Senate and do Peter Buljan belong to
Australia
action filter_type
action intersection
action find
entity member of the Australian Senate
relation applies to jurisdiction
action find
entity Peter Buljan
relation country of citizenship
type political territorial entity
{'AND': [['member of the Australian Senate', 'applies to jurisdiction', {'concept': 'political territorial entity'}], ['Peter Buljan', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { resource:member_of_the_Australian_Senate property:applies_to_jurisdiction ?u . resource:Peter_Buljan property:country_of_citizenship ?u . ?u rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P530
Q1048835 Q15617994 Q1048835
USER
Which political territories have diplomatic relations with max number of administrative territories or political territories ?
(c(Q15617994)|c(Q1048835),P530,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?k ) { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?h ) WHERE { VALUES ( ?q ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?a rdf:type ?q } GROUP BY ?e } } . { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?y ) WHERE { ?j rdf:type ?b . VALUES ( ?b ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?f } . FILTER ( ?y = ?k ) }
action argmax
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?k ) { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?h ) WHERE { VALUES ( ?q ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?a rdf:type ?q } GROUP BY ?e } } . { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?y ) WHERE { ?j rdf:type ?b . VALUES ( ?b ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?f } . FILTER ( ?y = ?k ) }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q15617994)|c(Q1048835),P530,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWER] have diplomatic relations with max number of administrative territories or political territories
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?k ) { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?h ) WHERE { VALUES ( ?q ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?a rdf:type ?q } GROUP BY ?e } } . { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?y ) WHERE { ?j rdf:type ?b . VALUES ( ?b ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?f } . FILTER ( ?y = ?k ) }
Germany
Germany have diplomatic relations with max number of administrative territories or political territories
Germany
action argmax
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?k ) { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?h ) WHERE { VALUES ( ?q ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?a rdf:type ?q } GROUP BY ?e } } . { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?y ) WHERE { ?j rdf:type ?b . VALUES ( ?b ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?f } . FILTER ( ?y = ?k ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q183 Q1536638
P27
Q502895
USER
Is Golo Berg a citizen of that political territory ?
(Q1536638,P27,Q183)
action is_in
entity Q183
action find
entity Q1536638
relation P27
['Q1536638', 'P27', 'Q183']
ASK WHERE { resource:Q1536638 property:P27 resource:Q183 }
Germany Golo Berg
action is_in
entity Germany
action find
entity Golo Berg
relation country of citizenship
['Golo Berg', 'country of citizenship', 'Germany']
ASK WHERE { resource:Golo_Berg property:country_of_citizenship resource:Germany }
[]
common name
SYSTEM
YES
(Q1536638,P27,Q183)
action is_in
entity Q183
action find
entity Q1536638
relation P27
[ANSWER]
['Q1536638', 'P27', 'Q183']
ASK WHERE { resource:Q1536638 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Golo Berg
relation country of citizenship
['Golo Berg', 'country of citizenship', 'Germany']
ASK WHERE { resource:Golo_Berg property:country_of_citizenship resource:Germany }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many administrative territories have diplomatic associations with atmost 4 political territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 4
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { FILTER ( ?u <= 4 ) . { SELECT DISTINCT ?s ( COUNT ( ?z ) AS ?u ) WHERE { ?s property:P530 ?z . ?s rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1048835 } GROUP BY ?s } }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { FILTER ( ?u <= 4 ) . { SELECT DISTINCT ?s ( COUNT ( ?z ) AS ?u ) WHERE { ?s property:diplomatic_relation ?z . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?s } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
158
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 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 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 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 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 4
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { FILTER ( ?u <= 4 ) . { SELECT DISTINCT ?s ( COUNT ( ?z ) AS ?u ) WHERE { ?s property:P530 ?z . ?s rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1048835 } GROUP BY ?s } }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia 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 Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco 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 Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
158
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { FILTER ( ?u <= 4 ) . { SELECT DISTINCT ?s ( COUNT ( ?z ) AS ?u ) WHERE { ?s property:diplomatic_relation ?z . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?s } }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q16677221 Q183
P47 P17
Q15617994
USER
Which administrative territories are bordered by Germany and are not Société de construction et d'entretien de matériel industriel et agricole present in ?
AND((Q183,P47,c(Q15617994)), NOT((Q16677221,P17,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P47
action find
entity Q16677221
relation P17
type Q15617994
{'AND': [['Q183', 'P47', {'concept': 'Q15617994'}], {'NOT': [['Q16677221', 'P17', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?n WHERE { resource:Q183 property:P47 ?n . FILTER NOT EXISTS { resource:Q16677221 property:P17 ?n } . ?n rdf:type ontology:Q15617994 }
Société de construction et d'entretien de matériel industriel et agricole Germany
action filter_type
action difference
action find
entity Germany
relation shares border with
action find
entity Société de construction et d'entretien de matériel industriel et agricole
relation country
type designation for an administrative territorial entity
{'AND': [['Germany', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [["Société de construction et d'entretien de matériel industriel et agricole", 'country', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?n WHERE { resource:Germany property:shares_border_with ?n . FILTER NOT EXISTS { resource:Société_de_construction_et_d'entretien_de_matériel_industriel_et_agricole property:country ?n } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q213 Q55 Q29999 Q32 Q31 Q36 Q39
SYSTEM
Czech Republic, Netherlands, Kingdom of the Netherlands, Luxembourg, Belgium, Poland, Switzerland
Q213 Q55 Q29999 Q32 Q31 Q36 Q39
AND((Q183,P47,c(Q15617994)), NOT((Q16677221,P17,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P47
action find
entity Q16677221
relation P17
type Q15617994
[ANSWERS] are bordered by Germany and are not Société de construction et d'entretien de matériel industriel et agricole present in
{'AND': [['Q183', 'P47', {'concept': 'Q15617994'}], {'NOT': [['Q16677221', 'P17', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?n WHERE { resource:Q183 property:P47 ?n . FILTER NOT EXISTS { resource:Q16677221 property:P17 ?n } . ?n rdf:type ontology:Q15617994 }
Czech Republic Netherlands Kingdom of the Netherlands Luxembourg Belgium Poland Switzerland
Czech Republic, Netherlands, Kingdom of the Netherlands, Luxembourg, Belgium, Poland and Switzerland are bordered by Germany and are not Société de construction et d'entretien de matériel industriel et agricole present in
Czech Republic Netherlands Kingdom of the Netherlands Luxembourg Belgium Poland Switzerland
action filter_type
action difference
action find
entity Germany
relation shares border with
action find
entity Société de construction et d'entretien de matériel industriel et agricole
relation country
type designation for an administrative territorial entity
{'AND': [['Germany', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [["Société de construction et d'entretien de matériel industriel et agricole", 'country', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?n WHERE { resource:Germany property:shares_border_with ?n . FILTER NOT EXISTS { resource:Société_de_construction_et_d'entretien_de_matériel_industriel_et_agricole property:country ?n } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q32
P19
Q502895
USER
Which people have birthplace at that administrative territory ?
(c(Q502895),P19,Q32)
action filter_type
action find_reverse
entity Q32
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q32']
SELECT DISTINCT ?j WHERE { ?j property:P19 resource:Q32 . ?j rdf:type ontology:Q502895 }
Luxembourg
action filter_type
action find_reverse
entity Luxembourg
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Luxembourg']
SELECT DISTINCT ?j WHERE { ?j property:place_of_birth resource:Luxembourg . ?j rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q29999
SYSTEM
Did you mean Kingdom of the Netherlands ?
Q213 Q55 Q29999 Q32 Q31 Q36 Q39
(c(Q502895),P19,Q213) (c(Q502895),P19,Q55) (c(Q502895),P19,Q29999) (c(Q502895),P19,Q32) (c(Q502895),P19,Q31) (c(Q502895),P19,Q36) (c(Q502895),P19,Q39)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q213'] [{'concept': 'Q502895'}, 'P19', 'Q55'] [{'concept': 'Q502895'}, 'P19', 'Q29999'] [{'concept': 'Q502895'}, 'P19', 'Q32'] [{'concept': 'Q502895'}, 'P19', 'Q31'] [{'concept': 'Q502895'}, 'P19', 'Q36'] [{'concept': 'Q502895'}, 'P19', 'Q39']
SELECT DISTINCT ?j WHERE { ?j property:P19 resource:Q32 . ?j rdf:type ontology:Q502895 }
Czech Republic Netherlands Kingdom of the Netherlands Luxembourg Belgium Poland Switzerland
Did you mean Kingdom of the Netherlands ?
Kingdom of the Netherlands
[{'concept': 'common name'}, 'place of birth', 'Czech Republic'] [{'concept': 'common name'}, 'place of birth', 'Netherlands'] [{'concept': 'common name'}, 'place of birth', 'Kingdom of the Netherlands'] [{'concept': 'common name'}, 'place of birth', 'Luxembourg'] [{'concept': 'common name'}, 'place of birth', 'Belgium'] [{'concept': 'common name'}, 'place of birth', 'Poland'] [{'concept': 'common name'}, 'place of birth', 'Switzerland']
SELECT DISTINCT ?j WHERE { ?j property:place_of_birth resource:Luxembourg . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Luxembourg. Could you tell me the answer for that?
(c(Q502895),P19,Q32)
Q32
[{'concept': 'Q502895'}, 'P19', 'Q32']
[{'concept': 'common name'}, 'place of birth', 'Luxembourg']
[]
Q155167 Q61620 Q561025
SYSTEM
John of Bohemia, Cunigunde of Luxembourg, Frank Deville
Q20962175 Q1537921 Q155167 Q16440363 Q16200820 Q2289262 Q1696374 Q1986455 Q2186436 Q1067492 Q15438978 Q2044464 Q1753736 Q61620 Q975849 Q2163015 Q291205 Q1510824 Q7651959 Q688955 Q1274494 Q7028830 Q2567191 Q13102037 Q12935 Q1604546 Q561269 Q1933315 Q433725 Q19901940 Q981361 Q1418203 Q1078768 Q2522116 Q84596 Q6421169 Q5562048 Q520743 Q1553641 Q966594 Q2278893 Q520052 Q1098198 Q7313686 Q2233674 Q6169769 Q1341984 Q2406243 Q3898021 Q1251791 Q13102669 Q2528709 Q16439036 Q3247449 Q1181133 Q1343189 Q105462 Q1096517 Q478073 Q6695787 Q1956767 Q3622064 Q3246778 Q3246645 Q138614 Q16439044 Q1872934 Q561025 Q198406 Q1476465 Q14871545 Q7146609 Q15638682 Q7436382 Q88287 Q1298330 Q185717 Q112261 Q981240 Q1995221 Q526327 Q2164480 Q122699 Q16440358 Q130093 Q183432 Q2641405 Q1871954 Q872594 Q17352735 Q109219 Q451552 Q241282 Q6298484 Q687209 Q1938337 Q1373416 Q7367323 Q63715 Q1909631 Q3807595 Q1445752 Q358150 Q3164788 Q2896213 Q1447510 Q3246956 Q23542606 Q925015 Q1593318 Q115699 Q1808082 Q1986501 Q2275838 Q777051 Q441405 Q152347 Q2034437 Q1716217 Q2184290 Q6320107 Q316797 Q19968825 Q1753722 Q1451113
(c(Q502895),P19,Q32)
action filter_type
action find_reverse
entity Q32
relation P19
type Q502895
[ANSWERS] have birthplace at that administrative territory
[{'concept': 'Q502895'}, 'P19', 'Q32']
SELECT DISTINCT ?j WHERE { ?j property:P19 resource:Q32 . ?j rdf:type ontology:Q502895 }
Sébastien Thill Gordian Troeller John of Bohemia Jean Zuang Pol Theis Elizabeth May Johann Theodor Rouvroy Nicolas Birtz Sacha Rohmann Charly Horneman Fernand Mathias Guelf Jeannot Moes Jean-Pierre Vanek Cunigunde of Luxembourg Marcel Balthasar Roland Schauls Anne Fontaine Luc Grethen Sven Di Domenico Arno J. Mayer Steven Minden Nico Rohmann Paul Koch Cathy Krier Etienne Lenoir Rupert Hoogewerf Paolo Amodio Claude Ganser Gilbert Trausch Jessica Birkel Jacques Plein Henri Koch-Kent Christian Alverdi Vicky Krieps Lothar Friedrich von Metternich-Burscheid Klive Gilles Engeldinger Karl von Mansfeld Guido Oppenheim Gerard Lopez Marcel Bossi André Jung Claudio da Luz René Closter Patrick Morocutti Jean-Paul Defrang Kim Kintziger Nicolas Funck Paul Bossi Luc Feit François Weber Vito Marchione Claude Dario Conter Myriam Muller Dean Spielmann Thomas Rabe Hugo von Sommerfeld Claude Birenbaum Jean de Beck Luc Mischo Myriam Thyes Hedwig of Nordgau Grégory Molitor Jean-Bernard Knepper Michel Scheuer Lucien Czuga Luc Spada Frank Deville Serge Rohmann Guy Kirsch Yannick Bastos Patrick Grettnich Gérard Gäfgen Scott Gardner Josef Jakobs Georges Lentz Auguste Trémont Heinrich Johann Nepomuk von Crantz Lull Gillen Ralph Ferron Roland Schaack Romain Fandel Johann Engling Raymond Zender Jean-Claude Biver Pol Sax Alex Kirsch Louis Scheuer Count Mátyás Cseszneky de Milvány et Csesznek Marc Conrad Johann Friedrich Schannat Anise Koltz Raoul Biltgen Joé Flick Michel Pauly Joël Groff Eugène Afrika Rosangela Settanni Hermann von François Matthew Woll Jean-Jacques Altmeyer Frantz Funck-Brentano Claude Reiter Jean-Chrétien Sibertin-Blanc Jeannot Reiter Samy Picard Gordon Braun Princess Amalia of Nassau Guy Hellers Hedwig Bender Johann Eberhard Jungblut Laurent Deville Nicolas Custer Patrick Posing Sacha Schneider Ernst von Mansfeld Baldwin of Luxembourg Manou Schauls Karl Stammer Gilbert Dresch Jérémie Peiffer Prince Félix of Luxembourg Sophie Maurer John van Rijswijck François Maas
John of Bohemia, Cunigunde of Luxembourg and Frank Deville have birthplace at that administrative territory
John of Bohemia Cunigunde of Luxembourg Frank Deville
action filter_type
action find_reverse
entity Luxembourg
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Luxembourg']
SELECT DISTINCT ?j WHERE { ?j property:place_of_birth resource:Luxembourg . ?j rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q155167
P1050
Q2057971
USER
What has that person contracted ?
(Q155167,P1050,c(Q2057971))
action filter_type
action find
entity Q155167
relation P1050
type Q2057971
['Q155167', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?z WHERE { resource:Q155167 property:P1050 ?z . ?z rdf:type ontology:Q2057971 }
John of Bohemia
action filter_type
action find
entity John of Bohemia
relation medical condition
type health problem
['John of Bohemia', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?z WHERE { resource:John_of_Bohemia property:medical_condition ?z . ?z rdf:type ontology:health_problem }
[]
health problem
Clarification for simple ques.
Q155167
SYSTEM
Did you mean John of Bohemia ?
Q155167 Q61620 Q561025
(Q155167,P1050,c(Q2057971)) (Q61620,P1050,c(Q2057971)) (Q561025,P1050,c(Q2057971))
[ANSWER]
['Q155167', 'P1050', {'concept': 'Q2057971'}] ['Q61620', 'P1050', {'concept': 'Q2057971'}] ['Q561025', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?z WHERE { resource:Q155167 property:P1050 ?z . ?z rdf:type ontology:Q2057971 }
John of Bohemia Cunigunde of Luxembourg Frank Deville
Did you mean John of Bohemia ?
John of Bohemia
['John of Bohemia', 'medical condition', {'concept': 'health problem'}] ['Cunigunde of Luxembourg', 'medical condition', {'concept': 'health problem'}] ['Frank Deville', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?z WHERE { resource:John_of_Bohemia property:medical_condition ?z . ?z rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
USER
Yes
(Q155167,P1050,c(Q2057971))
['Q155167', 'P1050', {'concept': 'Q2057971'}]
['John of Bohemia', 'medical condition', {'concept': 'health problem'}]
[]
Q10874
SYSTEM
blindness
Q10874
(Q155167,P1050,c(Q2057971))
action filter_type
action find
entity Q155167
relation P1050
type Q2057971
That person has contracted the [ANSWER]
['Q155167', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?z WHERE { resource:Q155167 property:P1050 ?z . ?z rdf:type ontology:Q2057971 }
blindness
That person has contracted the blindness
blindness
action filter_type
action find
entity John of Bohemia
relation medical condition
type health problem
['John of Bohemia', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?z WHERE { resource:John_of_Bohemia property:medical_condition ?z . ?z rdf:type ontology:health_problem }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1907118 Q6814428
P47 P1001
Q1048835
USER
Which political territories apply to jurisdiction of member of the Australian Senate or share the border with Villalba de los Alcores ?
OR((Q6814428,P1001,c(Q1048835)), (Q1907118,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q6814428
relation P1001
action find
entity Q1907118
relation P47
type Q1048835
{'OR': [['Q6814428', 'P1001', {'concept': 'Q1048835'}], ['Q1907118', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1907118 property:P47 ?m } UNION { resource:Q6814428 property:P1001 ?m } } . ?m rdf:type ontology:Q1048835 }
Villalba de los Alcores member of the Australian Senate
action filter_type
action union
action find
entity member of the Australian Senate
relation applies to jurisdiction
action find
entity Villalba de los Alcores
relation shares border with
type political territorial entity
{'OR': [['member of the Australian Senate', 'applies to jurisdiction', {'concept': 'political territorial entity'}], ['Villalba de los Alcores', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Villalba_de_los_Alcores property:shares_border_with ?m } UNION { resource:member_of_the_Australian_Senate property:applies_to_jurisdiction ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1922097 Q1657195 Q1919495 Q1769167 Q408 Q964867 Q1919532
SYSTEM
Villerías de Campos, Ampudia, Valdenebro de los Valles, Cigales, Australia, Montealegre de Campos, Mucientes
Q1922097 Q1657195 Q1919495 Q1769167 Q408 Q964867 Q1919532
OR((Q6814428,P1001,c(Q1048835)), (Q1907118,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q6814428
relation P1001
action find
entity Q1907118
relation P47
type Q1048835
[ANSWERS] apply to jurisdiction of member of the Australian Senate or share the border with Villalba de los Alcores
{'OR': [['Q6814428', 'P1001', {'concept': 'Q1048835'}], ['Q1907118', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1907118 property:P47 ?m } UNION { resource:Q6814428 property:P1001 ?m } } . ?m rdf:type ontology:Q1048835 }
Villerías de Campos Ampudia Valdenebro de los Valles Cigales Australia Montealegre de Campos Mucientes
Villerías de Campos, Ampudia, Valdenebro de los Valles, Cigales, Australia, Montealegre de Campos and Mucientes apply to jurisdiction of member of the Australian Senate or share the border with Villalba de los Alcores
Villerías de Campos Ampudia Valdenebro de los Valles Cigales Australia Montealegre de Campos Mucientes
action filter_type
action union
action find
entity member of the Australian Senate
relation applies to jurisdiction
action find
entity Villalba de los Alcores
relation shares border with
type political territorial entity
{'OR': [['member of the Australian Senate', 'applies to jurisdiction', {'concept': 'political territorial entity'}], ['Villalba de los Alcores', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Villalba_de_los_Alcores property:shares_border_with ?m } UNION { resource:member_of_the_Australian_Senate property:applies_to_jurisdiction ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q82794 Q56061 Q15617994
USER
How many administrative territories are a component of atleast 1 geographic regions or administrative territories ?
(c(Q15617994),P361,c(Q82794)|c(Q56061))
action count
action atleast
action union
action find_tuple_counts
relation P361
type Q15617994
type Q82794
action find_tuple_counts
relation P361
type Q15617994
type Q56061
value 1
[{'concept': 'Q15617994'}, 'P361', [{'concept': 'Q82794'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?w ) WHERE { { ?n property:P361 ?m . ?n rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q56061 } UNION { ?n property:P361 ?m . ?n rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q82794 } } GROUP BY ?n } . FILTER ( ?w >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type geographic region
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'part of', [{'concept': 'geographic region'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?w ) WHERE { { ?n property:part_of ?m . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:administrative_territorial_entity } UNION { ?n property:part_of ?m . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:geographic_region } } GROUP BY ?n } . FILTER ( ?w >= 1 ) }
[]
geographic region administrative territorial entity designation for an administrative territorial entity
SYSTEM
9
Q548611 Q242 Q36 Q686312 Q186115 Q585444 Q2661988 Q2115448 Q209495
(c(Q15617994),P361,c(Q82794)|c(Q56061))
action count
action atleast
action union
action find_tuple_counts
relation P361
type Q15617994
type Q82794
action find_tuple_counts
relation P361
type Q15617994
type Q56061
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P361', [{'concept': 'Q82794'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?w ) WHERE { { ?n property:P361 ?m . ?n rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q56061 } UNION { ?n property:P361 ?m . ?n rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q82794 } } GROUP BY ?n } . FILTER ( ?w >= 1 ) }
district of the Czech Republic Belize Poland Duchy of Amalfi Montmartre administrative district of Prague urban settlement in Russia Intra-city territory of a federal city historical province of France
9
action count
action atleast
action union
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type geographic region
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'part of', [{'concept': 'geographic region'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?m ) AS ?w ) WHERE { { ?n property:part_of ?m . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:administrative_territorial_entity } UNION { ?n property:part_of ?m . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:geographic_region } } GROUP BY ?n } . FILTER ( ?w >= 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q15617994 Q1048835
USER
How many political territories have a diplomatic relationship with atleast 49 administrative territories or political territories ?
(c(Q15617994)|c(Q1048835),P530,c(Q1048835))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
value 49
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?h ) WHERE { { ?v property:P530 ?o . ?v rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } UNION { ?v property:P530 ?o . ?o rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q1048835 } } GROUP BY ?o } . FILTER ( ?h >= 49 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 49
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?h ) WHERE { { ?v property:diplomatic_relation ?o . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } UNION { ?v property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:political_territorial_entity } } GROUP BY ?o } . FILTER ( ?h >= 49 ) }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
2
Q183 Q408
(c(Q15617994)|c(Q1048835),P530,c(Q1048835))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
value 49
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?h ) WHERE { { ?v property:P530 ?o . ?v rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } UNION { ?v property:P530 ?o . ?o rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q1048835 } } GROUP BY ?o } . FILTER ( ?h >= 49 ) }
Germany Australia
2
action count
action atleast
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 49
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?h ) WHERE { { ?v property:diplomatic_relation ?o . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } UNION { ?v property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:political_territorial_entity } } GROUP BY ?o } . FILTER ( ?h >= 49 ) }
[]