Simple Question (Direct)
Simple Question
Q2373844
P102
Q7210356
USER
Which party does Syed Sharifuddin Pirzada belong to ?
(Q2373844,P102,c(Q7210356))
action filter_type
action find
entity Q2373844
relation P102
type Q7210356
['Q2373844', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?y WHERE { resource:Q2373844 property:P102 ?y . ?y rdf:type ontology:Q7210356 }
Syed Sharifuddin Pirzada
action filter_type
action find
entity Syed Sharifuddin Pirzada
relation member of political party
type political organization
['Syed Sharifuddin Pirzada', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?y WHERE { resource:Syed_Sharifuddin_Pirzada property:member_of_political_party ?y . ?y rdf:type ontology:political_organization }
[]
political organization
Q223898
SYSTEM
All India Muslim League
Q223898
(Q2373844,P102,c(Q7210356))
action filter_type
action find
entity Q2373844
relation P102
type Q7210356
Syed Sharifuddin Pirzada belongs to [ANSWER]
['Q2373844', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?y WHERE { resource:Q2373844 property:P102 ?y . ?y rdf:type ontology:Q7210356 }
All India Muslim League
Syed Sharifuddin Pirzada belongs to All India Muslim League
All India Muslim League
action filter_type
action find
entity Syed Sharifuddin Pirzada
relation member of political party
type political organization
['Syed Sharifuddin Pirzada', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?y WHERE { resource:Syed_Sharifuddin_Pirzada property:member_of_political_party ?y . ?y rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2373844
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Syed Sharifuddin Pirzada ?
(Q2373844,P27,c(Q15617994))
action filter_type
action find
entity Q2373844
relation P27
type Q15617994
['Q2373844', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q2373844 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Syed Sharifuddin Pirzada
action filter_type
action find
entity Syed Sharifuddin Pirzada
relation country of citizenship
type designation for an administrative territorial entity
['Syed Sharifuddin Pirzada', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Syed_Sharifuddin_Pirzada property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q843
SYSTEM
Pakistan
Q843
(Q2373844,P27,c(Q15617994))
action filter_type
action find
entity Q2373844
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Syed Sharifuddin Pirzada
['Q2373844', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q2373844 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Pakistan
Pakistan is the country of citizenship of Syed Sharifuddin Pirzada
Pakistan
action filter_type
action find
entity Syed Sharifuddin Pirzada
relation country of citizenship
type designation for an administrative territorial entity
['Syed Sharifuddin Pirzada', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Syed_Sharifuddin_Pirzada property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2373844
P19
Q15617994
USER
Which administrative territory was Syed Sharifuddin Pirzada born at ?
(Q2373844,P19,c(Q15617994))
action filter_type
action find
entity Q2373844
relation P19
type Q15617994
['Q2373844', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q2373844 property:P19 ?t . ?t rdf:type ontology:Q15617994 }
Syed Sharifuddin Pirzada
action filter_type
action find
entity Syed Sharifuddin Pirzada
relation place of birth
type designation for an administrative territorial entity
['Syed Sharifuddin Pirzada', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Syed_Sharifuddin_Pirzada property:place_of_birth ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q843
SYSTEM
Pakistan
Q843
(Q2373844,P19,c(Q15617994))
action filter_type
action find
entity Q2373844
relation P19
type Q15617994
Which administrative territory was Syed Sharifuddin Pirzada born at
['Q2373844', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q2373844 property:P19 ?t . ?t rdf:type ontology:Q15617994 }
Pakistan
Which administrative territory was Syed Sharifuddin Pirzada born at
Pakistan
action filter_type
action find
entity Syed Sharifuddin Pirzada
relation place of birth
type designation for an administrative territorial entity
['Syed Sharifuddin Pirzada', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Syed_Sharifuddin_Pirzada property:place_of_birth ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2477411
Q15617994
USER
And how about Pierre Frédéric de la Croix?
(Q2477411,P19,c(Q15617994))
action filter_type
action find
entity Q2477411
relation P19
type Q15617994
['Q2477411', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q2477411 property:P19 ?w . ?w rdf:type ontology:Q15617994 }
Pierre Frédéric de la Croix
action filter_type
action find
entity Pierre Frédéric de la Croix
relation place of birth
type designation for an administrative territorial entity
['Pierre Frédéric de la Croix', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Pierre_Frédéric_de_la_Croix property:place_of_birth ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q2477411,P19,c(Q15617994))
action filter_type
action find
entity Q2477411
relation P19
type Q15617994
[ANSWER]
['Q2477411', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q2477411 property:P19 ?w . ?w rdf:type ontology:Q15617994 }
France
France
action filter_type
action find
entity Pierre Frédéric de la Croix
relation place of birth
type designation for an administrative territorial entity
['Pierre Frédéric de la Croix', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Pierre_Frédéric_de_la_Croix property:place_of_birth ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2477411
P463
Q1400264
USER
Which artist collective had that person as its member ?
(Q142,P463,c(Q1400264))
action filter_type
action find
entity Q2477411
relation P463
type Q1400264
['Q142', 'P463', {'concept': 'Q1400264'}]
SELECT DISTINCT ?a WHERE { resource:Q2477411 property:P463 ?a . ?a rdf:type ontology:Q1400264 }
Pierre Frédéric de la Croix
action filter_type
action find
entity Pierre Frédéric de la Croix
relation member of
type artist collective
['France', 'member of', {'concept': 'artist collective'}]
SELECT DISTINCT ?a WHERE { resource:Pierre_Frédéric_de_la_Croix property:member_of ?a . ?a rdf:type ontology:artist_collective }
[]
artist collective
Q804541
SYSTEM
Confrerie Pictura
Q804541
(Q142,P463,c(Q1400264))
action filter_type
action find
entity Q2477411
relation P463
type Q1400264
[ANSWER] had that person as its member
['Q142', 'P463', {'concept': 'Q1400264'}]
SELECT DISTINCT ?a WHERE { resource:Q2477411 property:P463 ?a . ?a rdf:type ontology:Q1400264 }
Confrerie Pictura
Confrerie Pictura had that person as its member
Confrerie Pictura
action filter_type
action find
entity Pierre Frédéric de la Croix
relation member of
type artist collective
['France', 'member of', {'concept': 'artist collective'}]
SELECT DISTINCT ?a WHERE { resource:Pierre_Frédéric_de_la_Croix property:member_of ?a . ?a rdf:type ontology:artist_collective }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q1267889 Q355304 Q15617994
USER
Which administrative territories are located nearby atmost 4 waterways and watercourses ?
(c(Q15617994),P206,c(Q1267889)|c(Q355304))
action atmost
action union
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action find_tuple_counts
relation P206
type Q15617994
type Q355304
value 4
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) ?s WHERE { { ?s property:P206 ?g . ?s rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q355304 } UNION { ?s property:P206 ?g . ?s rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1267889 } } GROUP BY ?s } . FILTER ( ?v <= 4 ) }
action atmost
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) ?s WHERE { { ?s property:located_next_to_body_of_water ?g . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:watercourse } UNION { ?s property:located_next_to_body_of_water ?g . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:waterway } } GROUP BY ?s } . FILTER ( ?v <= 4 ) }
[]
waterway watercourse designation for an administrative territorial entity
Q38 Q55 Q801
SYSTEM
Italy, Netherlands, Israel
Q21111 Q505785 Q104577 Q446425 Q3066319 Q31872 Q668 Q525879 Q572949 Q267993 Q525864 Q55 Q801 Q487328 Q47585 Q1604782 Q241358 Q6237 Q2316529 Q525945 Q14859 Q508863 Q568926 Q1650693 Q1009384 Q657 Q622487 Q4628 Q503693 Q4391124 Q884 Q664950 Q528579 Q493924 Q555609 Q161258 Q491751 Q10903 Q11343 Q263451 Q442666 Q14825 Q3111694 Q216422 Q244095 Q532046 Q7566251 Q7496670 Q307508 Q34 Q38 Q6685 Q3352704 Q252772 Q769680 Q104192 Q519663 Q2360428 Q255698 Q236 Q681329 Q1984541 Q560870 Q20 Q621469 Q28 Q29 Q3088406 Q690219 Q917406 Q511806 Q548982 Q3038 Q2043234 Q42265 Q225 Q224 Q222 Q14889 Q229 Q347 Q17 Q338094 Q3939 Q1577 Q525889 Q622456 Q154322 Q509998 Q539787 Q7042 Q525900 Q516567 Q507258 Q547059 Q215 Q269010 Q262684 Q573230 Q1604772 Q3923 Q174307 Q522992 Q1009 Q1438 Q20267 Q522677 Q194136 Q257859 Q252320 Q251778 Q895413 Q53742 Q567984 Q526087 Q1604766 Q7561974 Q948 Q2758 Q1974 Q573454 Q509536 Q4077862 Q1984544 Q494305 Q304745 Q542837 Q12056 Q4149191 Q7942378 Q47612
(c(Q15617994),P206,c(Q1267889)|c(Q355304))
action atmost
action union
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action find_tuple_counts
relation P206
type Q15617994
type Q355304
value 4
[ANSWERS] are located nearby atmost 4 waterways and watercourses
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) ?s WHERE { { ?s property:P206 ?g . ?s rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q355304 } UNION { ?s property:P206 ?g . ?s rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1267889 } } GROUP BY ?s } . FILTER ( ?v <= 4 ) }
Corn Islands Pförring Desenzano del Garda Altwarp Fala-Beguets Moosburg an der Isar India Haundorf Solnhofen Muhr am See Höttingen Netherlands Israel Marktl Garda Ulul Schleiden Lecco Noordpolderzijl Pfofeld Ansbach Mindelstetten Maasholm Niamey III Weno Chad Päwesin Faroe Islands Riedenburg Rakhlitsy South Korea Loddin Wörth an der Isar Pasewalk Magdala Clipperton Island Pfatter Finnentrop Wetter (Ruhr) Oberdolling Altmannstein Memmingen Gouraya, Tipaza Samsø Bellagio Fischen South Bay Shillingford Yepifan Sweden Italy Dorfhain Oneop Eichstätt Bornholm Kleinmachnow Kösching Tijuana Municipality Abensberg Montenegro Dümmer Niamey II Owschlag Norway Wennigsen Hungary Spain Front de Seine Perlin Niamey V North Slope Borough Heidenheim Helgoland Almere Buiten Abbadia Lariana Bosnia and Herzegovina Croatia Albania Schwabach Cyprus Liechtenstein Japan Polsingen Dinslaken Neuwerk Westheim Lage South Bank Wellheim Markt Berolzheim Amberg Meinheim Kappeln Kipfenberg Gnotzheim Slovenia Neustadt an der Donau Füssen Beilngries Moch Bayreuth Essing Braunlage Cameroon Campania Schwarz Nassenfels Riva del Garda Cham Pleinfeld Vohburg Bowen Island Donauwörth Woleai Nennslingen Pisaras Sonning Eye Tunisia Mönchengladbach British Columbia Hedersleben Landau an der Isar Baranovskiy Niamey I Kelheim Niamey IV Ettenstatt Oschatz Grigorovo Voxna Domaso
Italy, Netherlands and Israel are located nearby atmost 4 waterways and watercourses
Italy Netherlands Israel
action atmost
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) ?s WHERE { { ?s property:located_next_to_body_of_water ?g . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:watercourse } UNION { ?s property:located_next_to_body_of_water ?g . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:waterway } } GROUP BY ?s } . FILTER ( ?v <= 4 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q942803
P530
Q1048835
USER
Do Abel Figueiredo have diplomatic relations with those administrative territories ?
(Q942803,P530,Q38) (Q942803,P530,Q55) (Q942803,P530,Q801)
action is_in
entity prev_answer
action find
entity Q942803
relation P530
['Q942803', 'P530', 'Q38'] ['Q942803', 'P530', 'Q55'] ['Q942803', 'P530', 'Q801']
ASK WHERE { VALUES ( ?c ) { ( resource:Q21111 ) ( resource:Q505785 ) ( resource:Q104577 ) } . resource:Q942803 property:P530 ?c }
Abel Figueiredo
action is_in
entity prev_answer
action find
entity Abel Figueiredo
relation diplomatic relation
['Abel Figueiredo', 'diplomatic relation', 'Italy'] ['Abel Figueiredo', 'diplomatic relation', 'Netherlands'] ['Abel Figueiredo', 'diplomatic relation', 'Israel']
ASK WHERE { VALUES ( ?c ) { ( resource:Corn_Islands ) ( resource:Pförring ) ( resource:Desenzano_del_Garda ) } . resource:Abel_Figueiredo property:diplomatic_relation ?c }
[]
political territorial entity
SYSTEM
NO
(Q942803,P530,Q38) (Q942803,P530,Q55) (Q942803,P530,Q801)
action is_in
entity prev_answer
action find
entity Q942803
relation P530
[ANSWER]
['Q942803', 'P530', 'Q38'] ['Q942803', 'P530', 'Q55'] ['Q942803', 'P530', 'Q801']
ASK WHERE { VALUES ( ?c ) { ( resource:Q21111 ) ( resource:Q505785 ) ( resource:Q104577 ) } . resource:Q942803 property:P530 ?c }
No
action is_in
entity prev_answer
action find
entity Abel Figueiredo
relation diplomatic relation
['Abel Figueiredo', 'diplomatic relation', 'Italy'] ['Abel Figueiredo', 'diplomatic relation', 'Netherlands'] ['Abel Figueiredo', 'diplomatic relation', 'Israel']
ASK WHERE { VALUES ( ?c ) { ( resource:Corn_Islands ) ( resource:Pförring ) ( resource:Desenzano_del_Garda ) } . resource:Abel_Figueiredo property:diplomatic_relation ?c }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q843 Q846
P530
Q1048835
USER
How many political territories holds diplomatic relationship with Pakistan and Qatar ?
(Q843,P530,c(Q1048835)) (Q846,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q843
relation P530
type Q1048835
action filter_type
action find
entity Q846
relation P530
type Q1048835
['Q843', 'P530', {'concept': 'Q1048835'}] ['Q846', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { resource:Q843 property:P530 ?e . ?e rdf:type ontology:Q1048835 . resource:Q846 property:P530 ?e . ?e rdf:type ontology:Q1048835 }
Pakistan Qatar
action count
action intersection
action filter_type
action find
entity Pakistan
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Qatar
relation diplomatic relation
type political territorial entity
['Pakistan', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Qatar', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { resource:Pakistan property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity . resource:Qatar property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q16 Q408
(Q843,P530,c(Q1048835)) (Q846,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q843
relation P530
type Q1048835
action filter_type
action find
entity Q846
relation P530
type Q1048835
[ANSWER]
['Q843', 'P530', {'concept': 'Q1048835'}] ['Q846', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { resource:Q843 property:P530 ?e . ?e rdf:type ontology:Q1048835 . resource:Q846 property:P530 ?e . ?e rdf:type ontology:Q1048835 }
Canada Australia
2
action count
action intersection
action filter_type
action find
entity Pakistan
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Qatar
relation diplomatic relation
type political territorial entity
['Pakistan', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Qatar', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { resource:Pakistan property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity . resource:Qatar property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q38
P1001
Q15617994 Q4164871 Q820655
USER
How many administrative territories are judicially linked to lesser number of positions and statutes than Italy ?
(c(Q4164871)|c(Q820655),P1001,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q4164871
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q820655
action count
action filter_multi_types
action find_reverse
entity Q38
relation P1001
type Q4164871
type Q820655
[[{'concept': 'Q4164871'}, {'concept': 'Q820655'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?u ) WHERE { { ?n property:P1001 ?g . ?g rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q4164871 } UNION { ?g rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q820655 . ?n property:P1001 ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { { ?d rdf:type ontology:Q4164871 } UNION { ?d rdf:type ontology:Q820655 } } . ?d property:P1001 resource:Q38 } } . FILTER ( ?u < ?w ) }
Italy
action count
action less
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type position
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type statute
action count
action filter_multi_types
action find_reverse
entity Italy
relation applies to jurisdiction
type position
type statute
[[{'concept': 'position'}, {'concept': 'statute'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?u ) WHERE { { ?n property:applies_to_jurisdiction ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:position } UNION { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:statute . ?n property:applies_to_jurisdiction ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { { ?d rdf:type ontology:position } UNION { ?d rdf:type ontology:statute } } . ?d property:applies_to_jurisdiction resource:Italy } } . FILTER ( ?u < ?w ) }
[]
designation for an administrative territorial entity position statute
SYSTEM
259
Q701 Q702 Q804 Q705 Q801 Q707 Q709 Q811 Q706679 Q805 Q2765 Q419 Q668 Q163012 Q414 Q22273061 Q55 Q2871 Q262 Q148 Q189 Q784 Q31 Q265 Q24764 Q2742 Q842 Q37 Q398 Q874 Q712 Q711 Q710 Q717 Q837 Q213 Q443815 Q50198 Q1028 Q187035 Q252 Q22274206 Q399 Q1462 Q403 Q657 Q258 Q6465 Q1979 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q7688 Q739 Q3097 Q826 Q158893 Q2942 Q822 Q241 Q1965 Q817 Q11340 Q244 Q11343 Q1142326 Q1974 Q1019 Q2899 Q2758 Q1952 Q813 Q218 Q33 Q921 Q4712 Q924 Q36 Q34 Q928 Q155019 Q39 Q3389 Q986 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q163966 Q769680 Q3068 Q730 Q1013 Q11323 Q236 Q230 Q1948 Q232 Q233 Q1093 Q238 Q119284 Q1045 Q3403547 Q1042 Q1041 Q27 Q28 Q2667658 Q1049 Q1025 Q1027 Q783 Q1020 Q2009 Q843 Q2007 Q184 Q1101 Q1029 Q2003 Q736 Q786 Q1904 Q32 Q228 Q3462133 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q1050 Q17 Q1989 Q2838 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q694 Q695 Q115 Q114 Q117 Q754 Q752 Q750 Q212 Q22274534 Q11337 Q211 Q11331 Q217 Q214 Q215 Q12642 Q219 Q154547 Q683 Q242 Q1216 Q12753 Q912 Q2805 Q917 Q916 Q2107 Q1007 Q1006 Q1005 Q833 Q977 Q1951 Q1009 Q1008 Q971 Q970 Q1438 Q34020 Q2380910 Q686 Q836 Q760 Q29 Q574 Q11301 Q2904 Q158095 Q1044 Q79 Q77 Q858 Q878 Q775 Q774 Q948 Q776 Q810 Q770 Q773 Q772 Q1014 Q1016 Q158083 Q1011 Q1243 Q945 Q72449 Q12549 Q22273285 Q678 Q129003 Q800 Q1039 Q672 Q176 Q33788 Q929 Q1267638 Q298 Q329609 Q863 Q2938 Q2023 Q869 Q1231 Q953 Q1237
(c(Q4164871)|c(Q820655),P1001,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q4164871
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q820655
action count
action filter_multi_types
action find_reverse
entity Q38
relation P1001
type Q4164871
type Q820655
[ANSWER]
[[{'concept': 'Q4164871'}, {'concept': 'Q820655'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?u ) WHERE { { ?n property:P1001 ?g . ?g rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q4164871 } UNION { ?g rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q820655 . ?n property:P1001 ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { { ?d rdf:type ontology:Q4164871 } UNION { ?d rdf:type ontology:Q820655 } } . ?d property:P1001 resource:Q38 } } . FILTER ( ?u < ?w ) }
North Holland Federated States of Micronesia Panama Zeeland Israel Flevoland Marshall Islands Nicaragua Duchy of Bar Yemen Gelsenkirchen Peru India Pankow Argentina Duchy of Nemours Netherlands Hagen Algeria People's Republic of China Iceland Dominica Belgium Uzbekistan municipality of the Philippines Münster Oman Lithuania Bahrain Turkmenistan Fiji Mongolia Kiribati Venezuela Nepal Czech Republic Altomünster province of Thailand Morocco Principality of Albania Indonesia Duchy of Mercoeur Armenia Sardinia Serbia Chad South Africa department of France Prince Edward Island Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam raion Colombia Remscheid Maldives Friedrichshain-Kreuzberg Solingen Lebanon Cuba New Brunswick Kuwait Sprockhövel Barbados Wetter (Ruhr) Seine British Columbia Madagascar Mülheim an der Ruhr Mönchengladbach Nova Scotia Kyrgyzstan Romania Finland Brunei Duchy of Burgundy Tanzania Poland Sweden Philippines Duchy of Lorraine Switzerland Finistère Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Mitte Bornholm Loire-Atlantique Suriname Lesotho Breckerfeld Montenegro Georgia Manitoba Kazakhstan Malta Limburg San Marino Marzahn-Hellersdorf Somalia principality of Phalsbourg and Lixheim Seychelles Senegal Ireland Hungary Shushary, Saint Petersburg Sudan Mauritania Mauritius Honduras Malawi Yukon Pakistan Northwest Territories Belarus North Brabant Mozambique Newfoundland and Labrador Ecuador Dominican Republic Ontario Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Swaziland Japan Saskatchewan Oberhausen Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru South Holland Palau Ethiopia Kenya Ghana Trinidad and Tobago Groningen Bolivia Ukraine Duchy of Elbeuf Herdecke Latvia Gevelsberg Republic of Moldova Slovakia Slovenia Morbihan Bulgaria duchy Samoa Belize Piedmont Seine-et-Marne Mali Krefeld Bhutan Angola Wuppertal Guinea-Bissau Guinea Gambia Malaysia Djibouti Alberta Cameroon Côte d'Ivoire Republic of the Congo Comoros Campania Niue Duchy of Zaslawye Vanuatu Myanmar Saint Lucia Spain East Timor Ennepetal Herne Charlottenburg-Wilmersdorf Sierra Leone Egypt Uruguay Syria United Arab Emirates Gelderland Guatemala Tunisia Utrecht Jordan Friesland Overijssel Drenthe Liberia Libya Spandau Cape Verde Veneto Togo Roccarainola Ille-et-Vilaine Duchy of Guise Tonga French Southern and Antarctic Lands Costa Rica Sao Tomé and Príncipe Tuvalu Quebec New Caledonia Central African Republic Beloostrov Chile Lichtenberg Tajikistan Leverkusen Nunavut Thailand Kosovo Region Zambia Trentino-South Tyrol
259
action count
action less
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type position
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type statute
action count
action filter_multi_types
action find_reverse
entity Italy
relation applies to jurisdiction
type position
type statute
[[{'concept': 'position'}, {'concept': 'statute'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?u ) WHERE { { ?n property:applies_to_jurisdiction ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:position } UNION { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:statute . ?n property:applies_to_jurisdiction ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { { ?d rdf:type ontology:position } UNION { ?d rdf:type ontology:statute } } . ?d property:applies_to_jurisdiction resource:Italy } } . FILTER ( ?u < ?w ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q843
P163
Q14660
USER
Which flag is associated with Pakistan ?
(Q843,P163,c(Q14660))
action filter_type
action find
entity Q843
relation P163
type Q14660
['Q843', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?a WHERE { resource:Q843 property:P163 ?a . ?a rdf:type ontology:Q14660 }
Pakistan
action filter_type
action find
entity Pakistan
relation flag
type flag
['Pakistan', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?a WHERE { resource:Pakistan property:flag ?a . ?a rdf:type ontology:flag }
[]
flag
Q128347
SYSTEM
Flag of Pakistan
Q128347
(Q843,P163,c(Q14660))
action filter_type
action find
entity Q843
relation P163
type Q14660
Pakistan [ANSWER] is associated with Pakistan
['Q843', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?a WHERE { resource:Q843 property:P163 ?a . ?a rdf:type ontology:Q14660 }
Flag of Pakistan
Pakistan Flag of Pakistan is associated with Pakistan
Flag of Pakistan
action filter_type
action find
entity Pakistan
relation flag
type flag
['Pakistan', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?a WHERE { resource:Pakistan property:flag ?a . ?a rdf:type ontology:flag }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q843
P1376
Q515
USER
Which city is the county seat for that administrative territory ?
(c(Q515),P1376,Q128347)
action filter_type
action find_reverse
entity Q843
relation P1376
type Q515
[{'concept': 'Q515'}, 'P1376', 'Q128347']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q515 . ?a property:P1376 resource:Q843 }
Pakistan
action filter_type
action find_reverse
entity Pakistan
relation capital of
type city
[{'concept': 'city'}, 'capital of', 'Flag of Pakistan']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:city . ?a property:capital_of resource:Pakistan }
[]
city
Q1362
SYSTEM
Islamabad
Q1362
(c(Q515),P1376,Q128347)
action filter_type
action find_reverse
entity Q843
relation P1376
type Q515
[ANSWER] is the county seat for that administrative territory
[{'concept': 'Q515'}, 'P1376', 'Q128347']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q515 . ?a property:P1376 resource:Q843 }
Islamabad
Islamabad is the county seat for that administrative territory
Islamabad
action filter_type
action find_reverse
entity Pakistan
relation capital of
type city
[{'concept': 'city'}, 'capital of', 'Flag of Pakistan']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:city . ?a property:capital_of resource:Pakistan }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q34820 Q843
P190 P1376
Q515
USER
What are the capital of Pakistan or are a sister city of Santo Domingo ?
OR((c(Q515),P1376,Q843), (c(Q515),P190,Q34820))
action filter_type
action union
action find_reverse
entity Q843
relation P1376
action find_reverse
entity Q34820
relation P190
type Q515
{'OR': [[{'concept': 'Q515'}, 'P1376', 'Q843'], [{'concept': 'Q515'}, 'P190', 'Q34820']]}
SELECT DISTINCT ?h WHERE { { { ?h property:P1376 resource:Q843 } UNION { ?h property:P190 resource:Q34820 } } . ?h rdf:type ontology:Q515 }
Santo Domingo Pakistan
action filter_type
action union
action find_reverse
entity Pakistan
relation capital of
action find_reverse
entity Santo Domingo
relation sister city
type city
{'OR': [[{'concept': 'city'}, 'capital of', 'Pakistan'], [{'concept': 'city'}, 'sister city', 'Santo Domingo']]}
SELECT DISTINCT ?h WHERE { { { ?h property:capital_of resource:Pakistan } UNION { ?h property:sister_city resource:Santo_Domingo } } . ?h rdf:type ontology:city }
[]
city
Q8652 Q1533 Q2887 Q1362 Q2900 Q1486
SYSTEM
Miami, Caracas, Santiago, Islamabad, Quito, Buenos Aires
Q8652 Q1533 Q2887 Q1362 Q2900 Q1486
OR((c(Q515),P1376,Q843), (c(Q515),P190,Q34820))
action filter_type
action union
action find_reverse
entity Q843
relation P1376
action find_reverse
entity Q34820
relation P190
type Q515
The capital of Pakistan are [ANSWERS] or are a sister city of Santo Domingo
{'OR': [[{'concept': 'Q515'}, 'P1376', 'Q843'], [{'concept': 'Q515'}, 'P190', 'Q34820']]}
SELECT DISTINCT ?h WHERE { { { ?h property:P1376 resource:Q843 } UNION { ?h property:P190 resource:Q34820 } } . ?h rdf:type ontology:Q515 }
Miami Caracas Santiago Islamabad Quito Buenos Aires
The capital of Pakistan are Miami, Caracas, Santiago, Islamabad, Quito and Buenos Aires or are a sister city of Santo Domingo
Miami Caracas Santiago Islamabad Quito Buenos Aires
action filter_type
action union
action find_reverse
entity Pakistan
relation capital of
action find_reverse
entity Santo Domingo
relation sister city
type city
{'OR': [[{'concept': 'city'}, 'capital of', 'Pakistan'], [{'concept': 'city'}, 'sister city', 'Santo Domingo']]}
SELECT DISTINCT ?h WHERE { { { ?h property:capital_of resource:Pakistan } UNION { ?h property:sister_city resource:Santo_Domingo } } . ?h rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q801
P710
Q350604
USER
What event was Israel a participant of ?
(c(Q350604),P710,Q801)
action filter_type
action find_reverse
entity Q801
relation P710
type Q350604
[{'concept': 'Q350604'}, 'P710', 'Q801']
SELECT DISTINCT ?b WHERE { ?b property:P710 resource:Q801 . ?b rdf:type ontology:Q350604 }
Israel
action filter_type
action find_reverse
entity Israel
relation participant
type armed conflict
[{'concept': 'armed conflict'}, 'participant', 'Israel']
SELECT DISTINCT ?b WHERE { ?b property:participant resource:Israel . ?b rdf:type ontology:armed_conflict }
[]
armed conflict
Q49100
SYSTEM
Yom Kippur War
Q49100
(c(Q350604),P710,Q801)
action filter_type
action find_reverse
entity Q801
relation P710
type Q350604
Israel was in [ANSWER]
[{'concept': 'Q350604'}, 'P710', 'Q801']
SELECT DISTINCT ?b WHERE { ?b property:P710 resource:Q801 . ?b rdf:type ontology:Q350604 }
Yom Kippur War
Israel was in Yom Kippur War
Yom Kippur War
action filter_type
action find_reverse
entity Israel
relation participant
type armed conflict
[{'concept': 'armed conflict'}, 'participant', 'Israel']
SELECT DISTINCT ?b WHERE { ?b property:participant resource:Israel . ?b rdf:type ontology:armed_conflict }
[]