Simple Question (Direct)
Simple Question
Q296771
P39
Q12737077
USER
Which occupation was a position occupied by Saad Hariri ?
(Q296771,P39,c(Q12737077))
action filter_type
action find
entity Q296771
relation P39
type Q12737077
['Q296771', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q296771 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
Saad Hariri
action filter_type
action find
entity Saad Hariri
relation position held
type occupation
['Saad Hariri', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Saad_Hariri property:position_held ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q14915225
SYSTEM
Prime Minister of Lebanon
Q14915225
(Q296771,P39,c(Q12737077))
action filter_type
action find
entity Q296771
relation P39
type Q12737077
[ANSWER] was a position occupied by Saad Hariri
['Q296771', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q296771 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
Prime Minister of Lebanon
Prime Minister of Lebanon was a position occupied by Saad Hariri
Prime Minister of Lebanon
action filter_type
action find
entity Saad Hariri
relation position held
type occupation
['Saad Hariri', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Saad_Hariri property:position_held ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q14915225
P1001
Q15617994
USER
Which administrative territory comes under the supervision of that occupation ?
(Q14915225,P1001,c(Q15617994))
action filter_type
action find
entity Q14915225
relation P1001
type Q15617994
['Q14915225', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q14915225 property:P1001 ?o . ?o rdf:type ontology:Q15617994 }
Prime Minister of Lebanon
action filter_type
action find
entity Prime Minister of Lebanon
relation applies to jurisdiction
type designation for an administrative territorial entity
['Prime Minister of Lebanon', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Prime_Minister_of_Lebanon property:applies_to_jurisdiction ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q822
SYSTEM
Lebanon
Q822
(Q14915225,P1001,c(Q15617994))
action filter_type
action find
entity Q14915225
relation P1001
type Q15617994
The [ANSWER] comes under the supervision of that occupation
['Q14915225', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q14915225 property:P1001 ?o . ?o rdf:type ontology:Q15617994 }
Lebanon
The Lebanon comes under the supervision of that occupation
Lebanon
action filter_type
action find
entity Prime Minister of Lebanon
relation applies to jurisdiction
type designation for an administrative territorial entity
['Prime Minister of Lebanon', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Prime_Minister_of_Lebanon property:applies_to_jurisdiction ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q822 Q36823
P17
Q811979
USER
How many architectural structures are present in Lebanon or Tokelau ?
(c(Q811979),P17,Q822) (c(Q811979),P17,Q36823)
action count
action union
action filter_type
action find_reverse
entity Q822
relation P17
type Q811979
action filter_type
action find_reverse
entity Q36823
relation P17
type Q811979
[{'concept': 'Q811979'}, 'P17', 'Q822'] [{'concept': 'Q811979'}, 'P17', 'Q36823']
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:P17 ?a . VALUES ( ?a ) { ( resource:Q822 ) ( resource:Q36823 ) } }
Lebanon Tokelau
action count
action union
action filter_type
action find_reverse
entity Lebanon
relation country
type architectural structure
action filter_type
action find_reverse
entity Tokelau
relation country
type architectural structure
[{'concept': 'architectural structure'}, 'country', 'Lebanon'] [{'concept': 'architectural structure'}, 'country', 'Tokelau']
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:country ?a . VALUES ( ?a ) { ( resource:Lebanon ) ( resource:Tokelau ) } }
[]
architectural structure
SYSTEM
11
Q2919220 Q2877074 Q7267036 Q5431557 Q6763929 Q3544835 Q6783485 Q814899 Q4790319 Q668329 Q7368795
(c(Q811979),P17,Q822) (c(Q811979),P17,Q36823)
action count
action union
action filter_type
action find_reverse
entity Q822
relation P17
type Q811979
action filter_type
action find_reverse
entity Q36823
relation P17
type Q811979
[ANSWER]
[{'concept': 'Q811979'}, 'P17', 'Q822'] [{'concept': 'Q811979'}, 'P17', 'Q36823']
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:P17 ?a . VALUES ( ?a ) { ( resource:Q822 ) ( resource:Q36823 ) } }
Martyrs' Square Beirut International Exhibition & Leisure Center Qasr Chbib Fakhreddine Palace Marina Towers Hemoana Stadium Masnaa Border Crossing Beiteddine Palace Arida Border Crossing Beirut–Rafic Hariri International Airport Rosh HaNikra Crossing
11
action count
action union
action filter_type
action find_reverse
entity Lebanon
relation country
type architectural structure
action filter_type
action find_reverse
entity Tokelau
relation country
type architectural structure
[{'concept': 'architectural structure'}, 'country', 'Lebanon'] [{'concept': 'architectural structure'}, 'country', 'Tokelau']
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:country ?a . VALUES ( ?a ) { ( resource:Lebanon ) ( resource:Tokelau ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q822
P1532
Q6979593
USER
Who plays for Lebanon ?
(c(Q6979593),P1532,Q822)
action filter_type
action find_reverse
entity Q822
relation P1532
type Q6979593
[{'concept': 'Q6979593'}, 'P1532', 'Q822']
SELECT DISTINCT ?y WHERE { ?y property:P1532 resource:Q822 . ?y rdf:type ontology:Q6979593 }
Lebanon
action filter_type
action find_reverse
entity Lebanon
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Lebanon']
SELECT DISTINCT ?y WHERE { ?y property:country_for_sport resource:Lebanon . ?y rdf:type ontology:national_association_football_team }
[]
national association football team
Q1811072
SYSTEM
Lebanon women's national football team
Q1811072
(c(Q6979593),P1532,Q822)
action filter_type
action find_reverse
entity Q822
relation P1532
type Q6979593
And [ANSWER] plays for Lebanon
[{'concept': 'Q6979593'}, 'P1532', 'Q822']
SELECT DISTINCT ?y WHERE { ?y property:P1532 resource:Q822 . ?y rdf:type ontology:Q6979593 }
Lebanon women's national football team
And Lebanon women's national football team plays for Lebanon
Lebanon women's national football team
action filter_type
action find_reverse
entity Lebanon
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Lebanon']
SELECT DISTINCT ?y WHERE { ?y property:country_for_sport resource:Lebanon . ?y rdf:type ontology:national_association_football_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1811072
P641
Q349
USER
Which sport was that national association football team a part of ?
(Q1811072,P641,c(Q349))
action filter_type
action find
entity Q1811072
relation P641
type Q349
['Q1811072', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { resource:Q1811072 property:P641 ?e . ?e rdf:type ontology:Q349 }
Lebanon women's national football team
action filter_type
action find
entity Lebanon women's national football team
relation sport
type sport
["Lebanon women's national football team", 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { resource:Lebanon_women's_national_football_team property:sport ?e . ?e rdf:type ontology:sport }
[]
sport
Q606060
SYSTEM
women's association football
Q606060
(Q1811072,P641,c(Q349))
action filter_type
action find
entity Q1811072
relation P641
type Q349
[ANSWER] was that national association football team a part of
['Q1811072', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { resource:Q1811072 property:P641 ?e . ?e rdf:type ontology:Q349 }
women's association football
Women's association football was that national association football team a part of
women's association football
action filter_type
action find
entity Lebanon women's national football team
relation sport
type sport
["Lebanon women's national football team", 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { resource:Lebanon_women's_national_football_team property:sport ?e . ?e rdf:type ontology:sport }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P921
Q349 Q838948 Q2342494
USER
How many sports were greater number of works of art and collectables mainly about than that sport ?
(c(Q838948)|c(Q2342494),P921,c(Q349))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q349
type Q838948
action find_reverse_tuple_counts
relation P921
type Q349
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q606060
relation P921
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?b ) WHERE { { ?z property:P921 ?v . ?v rdf:type ontology:Q349 . ?z rdf:type ontology:Q838948 } UNION { ?z property:P921 ?v . ?v rdf:type ontology:Q349 . ?z rdf:type ontology:Q2342494 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { ?i property:P921 resource:Q606060 . { ?i rdf:type ?m . VALUES ( ?m ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?b > ?e ) }
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type sport
type work of art
action find_reverse_tuple_counts
relation main subject
type sport
type collectable
action count
action filter_multi_types
action find_reverse
entity women's association football
relation main subject
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'main subject', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?b ) WHERE { { ?z property:main_subject ?v . ?v rdf:type ontology:sport . ?z rdf:type ontology:work_of_art } UNION { ?z property:main_subject ?v . ?v rdf:type ontology:sport . ?z rdf:type ontology:collectable } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { ?i property:main_subject resource:women's_association_football . { ?i rdf:type ?m . VALUES ( ?m ) { ( ontology:work_of_art ) ( ontology:collectable ) } } } } . FILTER ( ?b > ?e ) }
[]
sport work of art collectable
SYSTEM
13
Q5372 Q5375 Q5377 Q36908 Q159992 Q32112 Q2736 Q5369 Q847 Q41466 Q41323 Q22857 Q124100
(c(Q838948)|c(Q2342494),P921,c(Q349))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q349
type Q838948
action find_reverse_tuple_counts
relation P921
type Q349
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q606060
relation P921
type Q838948
type Q2342494
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?b ) WHERE { { ?z property:P921 ?v . ?v rdf:type ontology:Q349 . ?z rdf:type ontology:Q838948 } UNION { ?z property:P921 ?v . ?v rdf:type ontology:Q349 . ?z rdf:type ontology:Q2342494 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { ?i property:P921 resource:Q606060 . { ?i rdf:type ?m . VALUES ( ?m ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?b > ?e ) }
basketball cricket golf mountaineering surfing boxing association football baseball tennis ice hockey American football climbing bodybuilding
13
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type sport
type work of art
action find_reverse_tuple_counts
relation main subject
type sport
type collectable
action count
action filter_multi_types
action find_reverse
entity women's association football
relation main subject
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'main subject', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?b ) WHERE { { ?z property:main_subject ?v . ?v rdf:type ontology:sport . ?z rdf:type ontology:work_of_art } UNION { ?z property:main_subject ?v . ?v rdf:type ontology:sport . ?z rdf:type ontology:collectable } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { ?i property:main_subject resource:women's_association_football . { ?i rdf:type ?m . VALUES ( ?m ) { ( ontology:work_of_art ) ( ontology:collectable ) } } } } . FILTER ( ?b > ?e ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q822
P36
Q56061
USER
Which administrative territory is called the capital of Lebanon ?
(Q822,P36,c(Q56061))
action filter_type
action find
entity Q822
relation P36
type Q56061
['Q822', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q822 property:P36 ?e . ?e rdf:type ontology:Q56061 }
Lebanon
action filter_type
action find
entity Lebanon
relation capital
type administrative territorial entity
['Lebanon', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Lebanon property:capital ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3820
SYSTEM
Beirut
Q3820
(Q822,P36,c(Q56061))
action filter_type
action find
entity Q822
relation P36
type Q56061
Be [ANSWER] is called the capital of Lebanon
['Q822', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q822 property:P36 ?e . ?e rdf:type ontology:Q56061 }
Beirut
Be Beirut is called the capital of Lebanon
Beirut
action filter_type
action find
entity Lebanon
relation capital
type administrative territorial entity
['Lebanon', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Lebanon property:capital ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q26689766
Q56061
USER
And how about Petlad Taluka?
(Q26689766,P36,c(Q56061))
action filter_type
action find
entity Q26689766
relation P36
type Q56061
['Q26689766', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q26689766 property:P36 ?n . ?n rdf:type ontology:Q56061 }
Petlad Taluka
action filter_type
action find
entity Petlad Taluka
relation capital
type administrative territorial entity
['Petlad Taluka', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Petlad_Taluka property:capital ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2734226
SYSTEM
Petlad
Q2734226
(Q26689766,P36,c(Q56061))
action filter_type
action find
entity Q26689766
relation P36
type Q56061
[ANSWER]
['Q26689766', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q26689766 property:P36 ?n . ?n rdf:type ontology:Q56061 }
Petlad
Petlad
action filter_type
action find
entity Petlad Taluka
relation capital
type administrative territorial entity
['Petlad Taluka', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Petlad_Taluka property:capital ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2734226
P19
Q502895
USER
Which person has birthplace at that administrative territory ?
(c(Q502895),P19,Q2734226)
action filter_type
action find_reverse
entity Q2734226
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q2734226']
SELECT DISTINCT ?c WHERE { ?c property:P19 resource:Q2734226 . ?c rdf:type ontology:Q502895 }
Petlad
action filter_type
action find_reverse
entity Petlad
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Petlad']
SELECT DISTINCT ?c WHERE { ?c property:place_of_birth resource:Petlad . ?c rdf:type ontology:common_name }
[]
common name
Q26132864
SYSTEM
Vrajlal Shastri
Q26132864
(c(Q502895),P19,Q2734226)
action filter_type
action find_reverse
entity Q2734226
relation P19
type Q502895
[ANSWER] has birthplace at that administrative territory
[{'concept': 'Q502895'}, 'P19', 'Q2734226']
SELECT DISTINCT ?c WHERE { ?c property:P19 resource:Q2734226 . ?c rdf:type ontology:Q502895 }
Vrajlal Shastri
Vrajlal Shastri has birthplace at that administrative territory
Vrajlal Shastri
action filter_type
action find_reverse
entity Petlad
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Petlad']
SELECT DISTINCT ?c WHERE { ?c property:place_of_birth resource:Petlad . ?c rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q895526 Q502895 Q12737077
USER
How many occupations are appointed by approximately 1 authority organs or people ?
(c(Q12737077),P748,c(Q895526)|c(Q502895))
action count
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q895526
action find_tuple_counts
relation P748
type Q12737077
type Q502895
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q895526'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?b ) WHERE { { ?f property:P748 ?q . ?f rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q895526 } UNION { ?f property:P748 ?q . ?f rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q502895 } } GROUP BY ?f } . FILTER ( ?b = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type authority organ
action find_tuple_counts
relation appointed by
type occupation
type common name
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'authority organ'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?b ) WHERE { { ?f property:appointed_by ?q . ?f rdf:type ontology:occupation . ?q rdf:type ontology:authority_organ } UNION { ?f property:appointed_by ?q . ?f rdf:type ontology:occupation . ?q rdf:type ontology:common_name } } GROUP BY ?f } . FILTER ( ?b = 1 ) }
[]
authority organ common name occupation
SYSTEM
70
Q2666591 Q1846384 Q1072417 Q2631987 Q2287650 Q5333410 Q261746 Q14984399 Q1029955 Q2484309 Q642859 Q2012061 Q7444357 Q967762 Q7444352 Q3246797 Q1371091 Q3315116 Q3477307 Q1369302 Q835586 Q940135 Q531471 Q2305968 Q7444340 Q2636053 Q464103 Q3858507 Q2419581 Q1124265 Q25863345 Q3477306 Q866756 Q2747647 Q565424 Q862559 Q13645132 Q636207 Q2003296 Q182762 Q967750 Q1060844 Q3397406 Q691615 Q783785 Q152814 Q1072415 Q195965 Q1763459 Q1975365 Q1591470 Q609884 Q1123764 Q735015 Q7240368 Q3297079 Q6865995 Q1029968 Q2297543 Q967737 Q3315134 Q6542448 Q2301213 Q3777749 Q111784 Q1362216 Q1658460 Q786242 Q25860233 Q1434880
(c(Q12737077),P748,c(Q895526)|c(Q502895))
action count
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q895526
action find_tuple_counts
relation P748
type Q12737077
type Q502895
value 1
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q895526'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?b ) WHERE { { ?f property:P748 ?q . ?f rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q895526 } UNION { ?f property:P748 ?q . ?f rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q502895 } } GROUP BY ?f } . FILTER ( ?b = 1 ) }
Chair of the Federal Reserve Secretary of State for Wales Chief of Staff of the United States Air Force Attorney General for England and Wales United States Secretary of the Interior Economic Secretary to the Treasury United States Secretary of the Air Force Secretary of State for Environment, Food and Rural Affairs United States Secretary of Agriculture Secretary of State for the Home Department United States Secretary of Homeland Security Leader of the House of Lords Secretary of State for Work and Pensions United States Secretary of Education Secretary of State for International Development Secretary of State for Transport Secretary of State for Foreign and Commonwealth Affairs Minister for the Civil Service Secretary of State for Justice Secretary of State for Northern Ireland Prime Minister of Serbia United States Secretary of the Navy Chancellor of the Exchequer United States Secretary of Health and Human Services Secretary of State for Dominion Affairs Leader of the House of Commons Speaker of the House of Commons Secretary of State for Business, Energy and Industrial Strategy United States Secretary of Housing and Urban Development List of Presidents of the Basque Autonomous Community Secretary of State for International Trade Secretary of State for Education Prime Minister of Singapore Secretary of State for Defence Prime Minister of the Bahamas Prime Minister of Malaysia Lord Mayor of Dublin United States Attorney General United States Secretary of Commerce Prime Minister of Algeria United States Secretary of Labor Paymaster General Secretary of State for Health Governor of the Virgin Islands Chief of Staff of the United States Army Prime Minister of Malta Chief of Naval Operations Governor of Gibraltar Chairman of the Joint Chiefs of Staff Prime Minister of Georgia United States Secretary of the Army First Lord of the Treasury Prime Minister of Armenia United States Secretary of Defense Premier of the Northwest Territories Secretary of State for Culture, Media and Sport Minister for the Cabinet Office United States Secretary of Energy United States Deputy Secretary of Defense United States Secretary of Transportation Minister for Women and Equalities Librarian of Congress United States Deputy Secretary of State Attorney General of Ireland Secretary of State for Scotland First Minister of Scotland United States Secretary of Veterans Affairs White House Chief of Staff Secretary of State for Exiting the European Union Surgeon General of the United States
70
action count
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type authority organ
action find_tuple_counts
relation appointed by
type occupation
type common name
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'authority organ'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?b ) WHERE { { ?f property:appointed_by ?q . ?f rdf:type ontology:occupation . ?q rdf:type ontology:authority_organ } UNION { ?f property:appointed_by ?q . ?f rdf:type ontology:occupation . ?q rdf:type ontology:common_name } } GROUP BY ?f } . FILTER ( ?b = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15965696
P1412
Q34770
USER
Which language is spoken by Manfredo Da Passano ?
(Q15965696,P1412,c(Q34770))
action filter_type
action find
entity Q15965696
relation P1412
type Q34770
['Q15965696', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { resource:Q15965696 property:P1412 ?v . ?v rdf:type ontology:Q34770 }
Manfredo Da Passano
action filter_type
action find
entity Manfredo Da Passano
relation languages spoken, written or signed
type language
['Manfredo Da Passano', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { resource:Manfredo_Da_Passano property:languages_spoken,_written_or_signed ?v . ?v rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q15965696,P1412,c(Q34770))
action filter_type
action find
entity Q15965696
relation P1412
type Q34770
The [ANSWER] is spoken by Manfredo Da Passano
['Q15965696', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { resource:Q15965696 property:P1412 ?v . ?v rdf:type ontology:Q34770 }
Italian
The Italian is spoken by Manfredo Da Passano
Italian
action filter_type
action find
entity Manfredo Da Passano
relation languages spoken, written or signed
type language
['Manfredo Da Passano', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { resource:Manfredo_Da_Passano property:languages_spoken,_written_or_signed ?v . ?v rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q545781
Q34770
USER
And also tell me about Mary Gaitskill?
(Q545781,P1412,c(Q34770))
action filter_type
action find
entity Q545781
relation P1412
type Q34770
['Q545781', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q34770 . resource:Q545781 property:P1412 ?u }
Mary Gaitskill
action filter_type
action find
entity Mary Gaitskill
relation languages spoken, written or signed
type language
['Mary Gaitskill', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:language . resource:Mary_Gaitskill property:languages_spoken,_written_or_signed ?u }
[]
language
Q1860
SYSTEM
English
Q1860
(Q545781,P1412,c(Q34770))
action filter_type
action find
entity Q545781
relation P1412
type Q34770
[ANSWER]
['Q545781', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q34770 . resource:Q545781 property:P1412 ?u }
English
English
action filter_type
action find
entity Mary Gaitskill
relation languages spoken, written or signed
type language
['Mary Gaitskill', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:language . resource:Mary_Gaitskill property:languages_spoken,_written_or_signed ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q652
P282
Q9779
USER
Which alphabet is used as the script for Italian ?
(Q652,P282,c(Q9779))
action filter_type
action find
entity Q652
relation P282
type Q9779
['Q652', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?d WHERE { resource:Q652 property:P282 ?d . ?d rdf:type ontology:Q9779 }
Italian
action filter_type
action find
entity Italian
relation writing system
type alphabet
['Italian', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?d WHERE { resource:Italian property:writing_system ?d . ?d rdf:type ontology:alphabet }
[]
alphabet
Q550383
SYSTEM
Italian alphabet
Q550383
(Q652,P282,c(Q9779))
action filter_type
action find
entity Q652
relation P282
type Q9779
In [ANSWER] is used as the script for Italian
['Q652', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?d WHERE { resource:Q652 property:P282 ?d . ?d rdf:type ontology:Q9779 }
Italian alphabet
In Italian alphabet is used as the script for Italian
Italian alphabet
action filter_type
action find
entity Italian
relation writing system
type alphabet
['Italian', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?d WHERE { resource:Italian property:writing_system ?d . ?d rdf:type ontology:alphabet }
[]