Simple Question (Direct)
Simple Question
Q509280
P21
Q290
USER
Which sex does Maurice T. Maschino have ?
(Q509280,P21,c(Q290))
action filter_type
action find
entity Q509280
relation P21
type Q290
['Q509280', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q509280 property:P21 ?d }
Maurice T. Maschino
action filter_type
action find
entity Maurice T. Maschino
relation gender
type sex
['Maurice T. Maschino', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:Maurice_T._Maschino property:gender ?d }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q509280,P21,c(Q290))
action filter_type
action find
entity Q509280
relation P21
type Q290
Maurice T. Maschino has 1 [ANSWER]
['Q509280', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q509280 property:P21 ?d }
male
Maurice T. Maschino has 1 male
male
action filter_type
action find
entity Maurice T. Maschino
relation gender
type sex
['Maurice T. Maschino', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:Maurice_T._Maschino property:gender ?d }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q509280
P106
Q12737077
USER
What are the job of Maurice T. Maschino ?
(Q509280,P106,c(Q12737077))
action filter_type
action find
entity Q509280
relation P106
type Q12737077
['Q509280', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . resource:Q509280 property:P106 ?a }
Maurice T. Maschino
action filter_type
action find
entity Maurice T. Maschino
relation occupation
type occupation
['Maurice T. Maschino', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . resource:Maurice_T._Maschino property:occupation ?a }
[]
occupation
Q1930187 Q36180
SYSTEM
journalist, writer
Q1930187 Q36180
(Q509280,P106,c(Q12737077))
action filter_type
action find
entity Q509280
relation P106
type Q12737077
The job of Maurice T. Maschino are a [ANSWERS]
['Q509280', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . resource:Q509280 property:P106 ?a }
journalist writer
The job of Maurice T. Maschino are a journalist and writer
journalist writer
action filter_type
action find
entity Maurice T. Maschino
relation occupation
type occupation
['Maurice T. Maschino', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . resource:Maurice_T._Maschino property:occupation ?a }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q509280
P19
Q56061
USER
Which administrative territory was Maurice T. Maschino born at ?
(Q509280,P19,c(Q56061))
action filter_type
action find
entity Q509280
relation P19
type Q56061
['Q509280', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q509280 property:P19 ?s }
Maurice T. Maschino
action filter_type
action find
entity Maurice T. Maschino
relation place of birth
type administrative territorial entity
['Maurice T. Maschino', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Maurice_T._Maschino property:place_of_birth ?s }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q509280,P19,c(Q56061))
action filter_type
action find
entity Q509280
relation P19
type Q56061
[ANSWER] was Maurice T. Maschino born at
['Q509280', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q509280 property:P19 ?s }
Paris
Paris was Maurice T. Maschino born at
Paris
action filter_type
action find
entity Maurice T. Maschino
relation place of birth
type administrative territorial entity
['Maurice T. Maschino', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Maurice_T._Maschino property:place_of_birth ?s }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q895526 Q1752346 Q12737077
USER
Which occupations did atleast 1 authority organs and assemblies appoint ?
(c(Q12737077),P748,c(Q895526)|c(Q1752346))
action atleast
action union
action find_tuple_counts
relation P748
type Q12737077
type Q895526
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q895526'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?q ) WHERE { { ?d property:P748 ?c . ?d rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q895526 } UNION { ?d property:P748 ?c . ?d rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q1752346 } } GROUP BY ?d } . FILTER ( ?q >= 1 ) }
action atleast
action union
action find_tuple_counts
relation appointed by
type occupation
type authority organ
action find_tuple_counts
relation appointed by
type occupation
type assembly
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'authority organ'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?q ) WHERE { { ?d property:appointed_by ?c . ?d rdf:type ontology:occupation . ?c rdf:type ontology:authority_organ } UNION { ?d property:appointed_by ?c . ?d rdf:type ontology:occupation . ?c rdf:type ontology:assembly } } GROUP BY ?d } . FILTER ( ?q >= 1 ) }
[]
authority organ assembly occupation
Q25863345 Q842386 Q967750
SYSTEM
Secretary of State for International Trade, Prime Minister of Russia, United States Secretary of Labor
Q2666591 Q1072417 Q2287650 Q5333410 Q261746 Q1029955 Q642859 Q967762 Q15305714 Q842386 Q19056310 Q890030 Q796593 Q940135 Q2305968 Q7444340 Q2419581 Q25863345 Q2747647 Q13645132 Q636207 Q7574264 Q2003296 Q967750 Q783785 Q1072415 Q3409203 Q327948 Q1763459 Q1591470 Q735015 Q1029968 Q2297543 Q967737 Q1370482 Q6542448 Q2301213 Q1658460 Q628102 Q786242 Q1434880
(c(Q12737077),P748,c(Q895526)|c(Q1752346))
action atleast
action union
action find_tuple_counts
relation P748
type Q12737077
type Q895526
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
value 1
Atleast 1 authority organs and assemblies appointed by [ANSWERS]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q895526'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?q ) WHERE { { ?d property:P748 ?c . ?d rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q895526 } UNION { ?d property:P748 ?c . ?d rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q1752346 } } GROUP BY ?d } . FILTER ( ?q >= 1 ) }
Chair of the Federal Reserve Chief of Staff of the United States Air Force United States Secretary of the Interior Economic Secretary to the Treasury United States Secretary of the Air Force United States Secretary of Agriculture United States Secretary of Homeland Security United States Secretary of Education Prime Minister of Libya Prime Minister of Russia President of Botswana State President of South Africa President of Malta United States Secretary of the Navy United States Secretary of Health and Human Services Secretary of State for Dominion Affairs United States Secretary of Housing and Urban Development Secretary of State for International Trade Secretary of State for Defence Lord Mayor of Dublin United States Attorney General Speaker of the Hellenic Parliament United States Secretary of Commerce United States Secretary of Labor Chief of Staff of the United States Army Chief of Naval Operations President of Greece President of Israel Chairman of the Joint Chiefs of Staff United States Secretary of the Army United States Secretary of Defense United States Secretary of Energy United States Deputy Secretary of Defense United States Secretary of Transportation President of Cuba Librarian of Congress United States Deputy Secretary of State United States Secretary of Veterans Affairs President of Nauru White House Chief of Staff Surgeon General of the United States
Atleast 1 authority organs and assemblies appointed by Secretary of State for International Trade, Prime Minister of Russia and United States Secretary of Labor
Secretary of State for International Trade Prime Minister of Russia United States Secretary of Labor
action atleast
action union
action find_tuple_counts
relation appointed by
type occupation
type authority organ
action find_tuple_counts
relation appointed by
type occupation
type assembly
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'authority organ'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?q ) WHERE { { ?d property:appointed_by ?c . ?d rdf:type ontology:occupation . ?c rdf:type ontology:authority_organ } UNION { ?d property:appointed_by ?c . ?d rdf:type ontology:occupation . ?c rdf:type ontology:assembly } } GROUP BY ?d } . FILTER ( ?q >= 1 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P361
Q35798 Q192350
USER
How many executive branches or ministries are that occupation a component of ?
(Q25863345,P361,c(Q35798)) (Q25863345,P361,c(Q192350)) (Q25863345,P361,c(Q35798)) (Q25863345,P361,c(Q192350)) (Q842386,P361,c(Q35798)) (Q842386,P361,c(Q192350)) (Q967750,P361,c(Q35798)) (Q967750,P361,c(Q192350))
['Q25863345', 'P361', {'concept': 'Q35798'}] ['Q25863345', 'P361', {'concept': 'Q192350'}] ['Q25863345', 'P361', {'concept': 'Q35798'}] ['Q25863345', 'P361', {'concept': 'Q192350'}] ['Q842386', 'P361', {'concept': 'Q35798'}] ['Q842386', 'P361', {'concept': 'Q192350'}] ['Q967750', 'P361', {'concept': 'Q35798'}] ['Q967750', 'P361', {'concept': 'Q192350'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q25863345 property:P361 ?z } UNION { resource:Q25863345 property:P361 ?y } UNION { resource:Q25863345 property:P361 ?z } UNION { resource:Q25863345 property:P361 ?y } UNION { resource:Q842386 property:P361 ?z } UNION { resource:Q842386 property:P361 ?y } UNION { resource:Q967750 property:P361 ?z } UNION { resource:Q967750 property:P361 ?y } } . ?z rdf:type ontology:Q35798 . ?y rdf:type ontology:Q192350 }
['Secretary of State for International Trade', 'part of', {'concept': 'executive branch'}] ['Secretary of State for International Trade', 'part of', {'concept': 'ministry'}] ['Secretary of State for International Trade', 'part of', {'concept': 'executive branch'}] ['Secretary of State for International Trade', 'part of', {'concept': 'ministry'}] ['Prime Minister of Russia', 'part of', {'concept': 'executive branch'}] ['Prime Minister of Russia', 'part of', {'concept': 'ministry'}] ['United States Secretary of Labor', 'part of', {'concept': 'executive branch'}] ['United States Secretary of Labor', 'part of', {'concept': 'ministry'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Secretary_of_State_for_International_Trade property:part_of ?z } UNION { resource:Secretary_of_State_for_International_Trade property:part_of ?y } UNION { resource:Secretary_of_State_for_International_Trade property:part_of ?z } UNION { resource:Secretary_of_State_for_International_Trade property:part_of ?y } UNION { resource:Prime_Minister_of_Russia property:part_of ?z } UNION { resource:Prime_Minister_of_Russia property:part_of ?y } UNION { resource:United_States_Secretary_of_Labor property:part_of ?z } UNION { resource:United_States_Secretary_of_Labor property:part_of ?y } } . ?z rdf:type ontology:executive_branch . ?y rdf:type ontology:ministry }
[]
executive branch ministry
Quantitative|Count|Mult. entity type|Clarification
Q25863345
SYSTEM
Did you mean Secretary of State for International Trade ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q25863345 property:P361 ?z } UNION { resource:Q25863345 property:P361 ?y } UNION { resource:Q25863345 property:P361 ?z } UNION { resource:Q25863345 property:P361 ?y } UNION { resource:Q842386 property:P361 ?z } UNION { resource:Q842386 property:P361 ?y } UNION { resource:Q967750 property:P361 ?z } UNION { resource:Q967750 property:P361 ?y } } . ?z rdf:type ontology:Q35798 . ?y rdf:type ontology:Q192350 }
Did you mean Secretary of State for International Trade ?
Secretary of State for International Trade
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Secretary_of_State_for_International_Trade property:part_of ?z } UNION { resource:Secretary_of_State_for_International_Trade property:part_of ?y } UNION { resource:Secretary_of_State_for_International_Trade property:part_of ?z } UNION { resource:Secretary_of_State_for_International_Trade property:part_of ?y } UNION { resource:Prime_Minister_of_Russia property:part_of ?z } UNION { resource:Prime_Minister_of_Russia property:part_of ?y } UNION { resource:United_States_Secretary_of_Labor property:part_of ?z } UNION { resource:United_States_Secretary_of_Labor property:part_of ?y } } . ?z rdf:type ontology:executive_branch . ?y rdf:type ontology:ministry }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q25863345,P361,c(Q35798)) (Q25863345,P361,c(Q192350)) (Q25863345,P361,c(Q35798)) (Q25863345,P361,c(Q192350)) (Q842386,P361,c(Q35798)) (Q842386,P361,c(Q192350)) (Q967750,P361,c(Q35798)) (Q967750,P361,c(Q192350))
['Q25863345', 'P361', {'concept': 'Q35798'}] ['Q25863345', 'P361', {'concept': 'Q192350'}] ['Q25863345', 'P361', {'concept': 'Q35798'}] ['Q25863345', 'P361', {'concept': 'Q192350'}] ['Q842386', 'P361', {'concept': 'Q35798'}] ['Q842386', 'P361', {'concept': 'Q192350'}] ['Q967750', 'P361', {'concept': 'Q35798'}] ['Q967750', 'P361', {'concept': 'Q192350'}]
['Secretary of State for International Trade', 'part of', {'concept': 'executive branch'}] ['Secretary of State for International Trade', 'part of', {'concept': 'ministry'}] ['Secretary of State for International Trade', 'part of', {'concept': 'executive branch'}] ['Secretary of State for International Trade', 'part of', {'concept': 'ministry'}] ['Prime Minister of Russia', 'part of', {'concept': 'executive branch'}] ['Prime Minister of Russia', 'part of', {'concept': 'ministry'}] ['United States Secretary of Labor', 'part of', {'concept': 'executive branch'}] ['United States Secretary of Labor', 'part of', {'concept': 'ministry'}]
[]
SYSTEM
2
Q25991767 Q112014
(Q25863345,P361,c(Q35798)) (Q25863345,P361,c(Q192350)) (Q25863345,P361,c(Q35798)) (Q25863345,P361,c(Q192350)) (Q842386,P361,c(Q35798)) (Q842386,P361,c(Q192350)) (Q967750,P361,c(Q35798)) (Q967750,P361,c(Q192350))
[ANSWER]
['Q25863345', 'P361', {'concept': 'Q35798'}] ['Q25863345', 'P361', {'concept': 'Q192350'}] ['Q25863345', 'P361', {'concept': 'Q35798'}] ['Q25863345', 'P361', {'concept': 'Q192350'}] ['Q842386', 'P361', {'concept': 'Q35798'}] ['Q842386', 'P361', {'concept': 'Q192350'}] ['Q967750', 'P361', {'concept': 'Q35798'}] ['Q967750', 'P361', {'concept': 'Q192350'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q25863345 property:P361 ?z } UNION { resource:Q25863345 property:P361 ?y } UNION { resource:Q25863345 property:P361 ?z } UNION { resource:Q25863345 property:P361 ?y } UNION { resource:Q842386 property:P361 ?z } UNION { resource:Q842386 property:P361 ?y } UNION { resource:Q967750 property:P361 ?z } UNION { resource:Q967750 property:P361 ?y } } . ?z rdf:type ontology:Q35798 . ?y rdf:type ontology:Q192350 }
Department for International Trade Cabinet of the United Kingdom
2
['Secretary of State for International Trade', 'part of', {'concept': 'executive branch'}] ['Secretary of State for International Trade', 'part of', {'concept': 'ministry'}] ['Secretary of State for International Trade', 'part of', {'concept': 'executive branch'}] ['Secretary of State for International Trade', 'part of', {'concept': 'ministry'}] ['Prime Minister of Russia', 'part of', {'concept': 'executive branch'}] ['Prime Minister of Russia', 'part of', {'concept': 'ministry'}] ['United States Secretary of Labor', 'part of', {'concept': 'executive branch'}] ['United States Secretary of Labor', 'part of', {'concept': 'ministry'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Secretary_of_State_for_International_Trade property:part_of ?z } UNION { resource:Secretary_of_State_for_International_Trade property:part_of ?y } UNION { resource:Secretary_of_State_for_International_Trade property:part_of ?z } UNION { resource:Secretary_of_State_for_International_Trade property:part_of ?y } UNION { resource:Prime_Minister_of_Russia property:part_of ?z } UNION { resource:Prime_Minister_of_Russia property:part_of ?y } UNION { resource:United_States_Secretary_of_Labor property:part_of ?z } UNION { resource:United_States_Secretary_of_Labor property:part_of ?y } } . ?z rdf:type ontology:executive_branch . ?y rdf:type ontology:ministry }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q23759535 Q509280
P27
Q15617994
USER
Which administrative territories are Maurice T. Maschino or Mehdi Rajabian an inhabitant of ?
OR((Q509280,P27,c(Q15617994)), (Q23759535,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q509280
relation P27
action find
entity Q23759535
relation P27
type Q15617994
{'OR': [['Q509280', 'P27', {'concept': 'Q15617994'}], ['Q23759535', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?h ) { ( resource:Q509280 ) ( resource:Q23759535 ) } . ?h property:P27 ?j } . ?j rdf:type ontology:Q15617994 }
Mehdi Rajabian Maurice T. Maschino
action filter_type
action union
action find
entity Maurice T. Maschino
relation country of citizenship
action find
entity Mehdi Rajabian
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Maurice T. Maschino', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mehdi Rajabian', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?h ) { ( resource:Maurice_T._Maschino ) ( resource:Mehdi_Rajabian ) } . ?h property:country_of_citizenship ?j } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q794
SYSTEM
France, Iran
Q142 Q794
OR((Q509280,P27,c(Q15617994)), (Q23759535,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q509280
relation P27
action find
entity Q23759535
relation P27
type Q15617994
[ANSWERS] are Maurice T. Maschino or Mehdi Rajabian an inhabitant of
{'OR': [['Q509280', 'P27', {'concept': 'Q15617994'}], ['Q23759535', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?h ) { ( resource:Q509280 ) ( resource:Q23759535 ) } . ?h property:P27 ?j } . ?j rdf:type ontology:Q15617994 }
France Iran
France and Iran are Maurice T. Maschino or Mehdi Rajabian an inhabitant of
France Iran
action filter_type
action union
action find
entity Maurice T. Maschino
relation country of citizenship
action find
entity Mehdi Rajabian
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Maurice T. Maschino', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mehdi Rajabian', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?h ) { ( resource:Maurice_T._Maschino ) ( resource:Mehdi_Rajabian ) } . ?h property:country_of_citizenship ?j } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7490785
P27
Q502895
USER
Are Shaun A. Saunders a citizen of those administrative territories ?
(Q7490785,P27,Q142) (Q7490785,P27,Q794)
action is_in
entity prev_answer
action find
entity Q7490785
relation P27
['Q7490785', 'P27', 'Q142'] ['Q7490785', 'P27', 'Q794']
ASK WHERE { VALUES ( ?n ) { ( resource:Q142 ) ( resource:Q794 ) } . resource:Q7490785 property:P27 ?n }
Shaun A. Saunders
action is_in
entity prev_answer
action find
entity Shaun A. Saunders
relation country of citizenship
['Shaun A. Saunders', 'country of citizenship', 'France'] ['Shaun A. Saunders', 'country of citizenship', 'Iran']
ASK WHERE { VALUES ( ?n ) { ( resource:France ) ( resource:Iran ) } . resource:Shaun_A._Saunders property:country_of_citizenship ?n }
[]
common name
SYSTEM
NO
(Q7490785,P27,Q142) (Q7490785,P27,Q794)
action is_in
entity prev_answer
action find
entity Q7490785
relation P27
[ANSWER]
['Q7490785', 'P27', 'Q142'] ['Q7490785', 'P27', 'Q794']
ASK WHERE { VALUES ( ?n ) { ( resource:Q142 ) ( resource:Q794 ) } . resource:Q7490785 property:P27 ?n }
No
action is_in
entity prev_answer
action find
entity Shaun A. Saunders
relation country of citizenship
['Shaun A. Saunders', 'country of citizenship', 'France'] ['Shaun A. Saunders', 'country of citizenship', 'Iran']
ASK WHERE { VALUES ( ?n ) { ( resource:France ) ( resource:Iran ) } . resource:Shaun_A._Saunders property:country_of_citizenship ?n }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q967750 Q51836
P17
Q15617994
USER
Is United States Secretary of Labor a part of Noci ?
(Q967750,P17,Q51836)
action is_in
entity Q51836
action find
entity Q967750
relation P17
['Q967750', 'P17', 'Q51836']
ASK WHERE { resource:Q967750 property:P17 resource:Q51836 }
United States Secretary of Labor Noci
action is_in
entity Noci
action find
entity United States Secretary of Labor
relation country
['United States Secretary of Labor', 'country', 'Noci']
ASK WHERE { resource:United_States_Secretary_of_Labor property:country resource:Noci }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q967750,P17,Q51836)
action is_in
entity Q51836
action find
entity Q967750
relation P17
[ANSWER]
['Q967750', 'P17', 'Q51836']
ASK WHERE { resource:Q967750 property:P17 resource:Q51836 }
No
action is_in
entity Noci
action find
entity United States Secretary of Labor
relation country
['United States Secretary of Labor', 'country', 'Noci']
ASK WHERE { resource:United_States_Secretary_of_Labor property:country resource:Noci }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q794
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with greater number of administrative territories than Iran ?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q794
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { ?n property:P530 resource:Q794 . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?c > ?i ) . { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?c ) WHERE { ?v property:P530 ?u . ?v rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 } GROUP BY ?v } }
Iran
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Iran
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { ?n property:diplomatic_relation resource:Iran . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?c > ?i ) . { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?c ) WHERE { ?v property:diplomatic_relation ?u . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
17
Q801 Q805 Q668 Q142 Q145 Q148 Q403 Q159 Q43 Q155 Q30 Q38 Q17 Q79 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q794
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { ?n property:P530 resource:Q794 . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?c > ?i ) . { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?c ) WHERE { ?v property:P530 ?u . ?v rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 } GROUP BY ?v } }
Israel Yemen India France United Kingdom People's Republic of China Serbia Russia Turkey Brazil United States of America Italy Japan Egypt Libya Cape Verde Zambia
17
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Iran
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { ?n property:diplomatic_relation resource:Iran . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?c > ?i ) . { SELECT DISTINCT ?v ( COUNT ( ?u ) AS ?c ) WHERE { ?v property:diplomatic_relation ?u . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q945
P530
Q15617994 Q15617994
USER
And what about Togo?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q945
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { resource:Q945 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?m > ?q ) . { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?m ) WHERE { ?y rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 . ?o property:P530 ?y } GROUP BY ?y } }
Togo
action count
action greater
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Togo
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { resource:Togo property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m > ?q ) . { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?m ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:diplomatic_relation ?y } GROUP BY ?y } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
141
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q37 Q711 Q710 Q717 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q244 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q819 Q424 Q1013 Q236 Q230 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q34020 Q686 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q945
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { resource:Q945 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?m > ?q ) . { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?m ) WHERE { ?y rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 . ?o property:P530 ?y } GROUP BY ?y } }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Lithuania Mongolia Kiribati Venezuela Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Barbados Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Laos Cambodia Lesotho Montenegro Georgia Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Niue Vanuatu East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
141
action count
action greater
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Togo
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { resource:Togo property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m > ?q ) . { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?m ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:diplomatic_relation ?y } GROUP BY ?y } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q794
P47
Q15617994
USER
Which administrative territories are bordered by Iran ?
(Q794,P47,c(Q15617994))
action filter_type
action find
entity Q794
relation P47
type Q15617994
['Q794', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q794 property:P47 ?r . ?r rdf:type ontology:Q15617994 }
Iran
action filter_type
action find
entity Iran
relation shares border with
type designation for an administrative territorial entity
['Iran', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Iran property:shares_border_with ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q43 Q889 Q796
SYSTEM
Turkey, Afghanistan, Iraq
Q227 Q43 Q843 Q796 Q874 Q889 Q399
(Q794,P47,c(Q15617994))
action filter_type
action find
entity Q794
relation P47
type Q15617994
[ANSWERS] are bordered by Iran
['Q794', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q794 property:P47 ?r . ?r rdf:type ontology:Q15617994 }
Azerbaijan Turkey Pakistan Iraq Turkmenistan Afghanistan Armenia
Turkey, Afghanistan and Iraq are bordered by Iran
Turkey Afghanistan Iraq
action filter_type
action find
entity Iran
relation shares border with
type designation for an administrative territorial entity
['Iran', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Iran property:shares_border_with ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]