Simple Question (Direct)
Simple Question
Q6891275
P21
Q290
USER
What is the sex of Mohamed Jassim Mahdi ?
(Q6891275,P21,c(Q290))
action filter_type
action find
entity Q6891275
relation P21
type Q290
['Q6891275', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q6891275 property:P21 ?b . ?b rdf:type ontology:Q290 }
Mohamed Jassim Mahdi
action filter_type
action find
entity Mohamed Jassim Mahdi
relation gender
type sex
['Mohamed Jassim Mahdi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Mohamed_Jassim_Mahdi property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6891275,P21,c(Q290))
action filter_type
action find
entity Q6891275
relation P21
type Q290
The sex of Mohamed Jassim Mahdi is the [ANSWER]
['Q6891275', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q6891275 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
The sex of Mohamed Jassim Mahdi is the male
male
action filter_type
action find
entity Mohamed Jassim Mahdi
relation gender
type sex
['Mohamed Jassim Mahdi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Mohamed_Jassim_Mahdi property:gender ?b . ?b rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6891275
P106
Q12737077
USER
What does Mohamed Jassim Mahdi do for a living ?
(Q6891275,P106,c(Q12737077))
action filter_type
action find
entity Q6891275
relation P106
type Q12737077
['Q6891275', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q6891275 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Mohamed Jassim Mahdi
action filter_type
action find
entity Mohamed Jassim Mahdi
relation occupation
type occupation
['Mohamed Jassim Mahdi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Mohamed_Jassim_Mahdi property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q6891275,P106,c(Q12737077))
action filter_type
action find
entity Q6891275
relation P106
type Q12737077
[ANSWER] Mohamed Jassim Mahdi does for a living
['Q6891275', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q6891275 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
association football player
Association football player Mohamed Jassim Mahdi does for a living
association football player
action filter_type
action find
entity Mohamed Jassim Mahdi
relation occupation
type occupation
['Mohamed Jassim Mahdi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Mohamed_Jassim_Mahdi property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6891275
P54
Q1194951
USER
Which national sports team is that person a member of ?
(Q937857,P54,c(Q1194951))
action filter_type
action find
entity Q6891275
relation P54
type Q1194951
['Q937857', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?a WHERE { resource:Q6891275 property:P54 ?a . ?a rdf:type ontology:Q1194951 }
Mohamed Jassim Mahdi
action filter_type
action find
entity Mohamed Jassim Mahdi
relation member of sports team
type national sports team
['association football player', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?a WHERE { resource:Mohamed_Jassim_Mahdi property:member_of_sports_team ?a . ?a rdf:type ontology:national_sports_team }
[]
national sports team
Q186243
SYSTEM
Iraq national football team
Q186243
(Q937857,P54,c(Q1194951))
action filter_type
action find
entity Q6891275
relation P54
type Q1194951
And [ANSWER] is that person a member of
['Q937857', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?a WHERE { resource:Q6891275 property:P54 ?a . ?a rdf:type ontology:Q1194951 }
Iraq national football team
And Iraq national football team is that person a member of
Iraq national football team
action filter_type
action find
entity Mohamed Jassim Mahdi
relation member of sports team
type national sports team
['association football player', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?a WHERE { resource:Mohamed_Jassim_Mahdi property:member_of_sports_team ?a . ?a rdf:type ontology:national_sports_team }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q186243
P54
Q502895
USER
How many people are a member of Iraq national football team ?
(c(Q502895),P54,Q186243)
action count
action filter_type
action find_reverse
entity Q186243
relation P54
type Q502895
[{'concept': 'Q502895'}, 'P54', 'Q186243']
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { ?h property:P54 resource:Q186243 . ?h rdf:type ontology:Q502895 }
Iraq national football team
action count
action filter_type
action find_reverse
entity Iraq national football team
relation member of sports team
type common name
[{'concept': 'common name'}, 'member of sports team', 'Iraq national football team']
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { ?h property:member_of_sports_team resource:Iraq_national_football_team . ?h rdf:type ontology:common_name }
[]
common name
SYSTEM
215
Q4724921 Q626305 Q5269909 Q5679867 Q3959043 Q7409510 Q258593 Q10464696 Q4663789 Q4724561 Q6893267 Q6164186 Q21266356 Q550349 Q5949640 Q5949642 Q6970020 Q2134375 Q5949650 Q1389004 Q4705119 Q4705116 Q2609904 Q2609900 Q594140 Q368870 Q4705125 Q4705129 Q4725075 Q4747037 Q4747030 Q4120033 Q5984715 Q704690 Q3603377 Q3606997 Q4695462 Q4120195 Q12203667 Q10450071 Q6982818 Q2319132 Q318780 Q6943305 Q10542231 Q16599437 Q919262 Q726777 Q5638986 Q5638987 Q7397960 Q7424267 Q5368771 Q5638998 Q5638990 Q5638993 Q5638996 Q6474183 Q18057258 Q8049683 Q2608976 Q4116070 Q974050 Q4695222 Q667239 Q670177 Q4665227 Q20806762 Q13652469 Q5936720 Q2458606 Q5517382 Q5437265 Q7282655 Q5338371 Q16729696 Q19560852 Q21180907 Q2404106 Q21004702 Q6370547 Q4831597 Q7505813 Q5368780 Q15983050 Q7175991 Q5679004 Q6943210 Q5548383 Q2539944 Q15983047 Q21066439 Q23418706 Q13660616 Q21642609 Q2271934 Q4742129 Q7398237 Q7404495 Q5301223 Q4695268 Q4724700 Q21004882 Q16235786 Q5949505 Q3946508 Q2610160 Q2610167 Q10556598 Q6957519 Q18354012 Q202856 Q608402 Q13635576 Q4695224 Q10514049 Q4725257 Q4683898 Q20641546 Q4120067 Q6399555 Q7400009 Q6891275 Q4683880 Q4120073 Q4120073 Q6399545 Q16236469 Q3611615 Q7424008 Q6110188 Q7403424 Q9142733 Q6893673 Q4725181 Q576874 Q165866 Q4120199 Q8027710 Q8027712 Q8027714 Q18378470 Q4118755 Q4166581 Q1569060 Q617369 Q3806421 Q762175 Q2074968 Q548436 Q19757713 Q956267 Q7961941 Q13914359 Q5646501 Q10526042 Q6126804 Q18350419 Q18246217 Q3802591 Q2715708 Q10467208 Q13914307 Q2824672 Q7111325 Q7709847 Q3814935 Q4747177 Q7395562 Q4115806 Q15712000 Q4120129 Q7408518 Q3841882 Q6892846 Q2108940 Q6734084 Q6893122 Q19904166 Q23542664 Q7280237 Q5984603 Q2715374 Q4724850 Q620322 Q382620 Q4867475 Q4166079 Q7399602 Q6943819 Q7961683 Q4695778 Q443185 Q401433 Q6370647 Q7961694 Q4695375 Q3617882 Q6164178 Q2623853 Q5636779 Q927581 Q1373263 Q8049908 Q8049907 Q5399350 Q5399353 Q16150023 Q10542761 Q331433 Q7398848 Q4747182 Q473313 Q6956805 Q6942936
(c(Q502895),P54,Q186243)
action count
action filter_type
action find_reverse
entity Q186243
relation P54
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P54', 'Q186243']
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { ?h property:P54 resource:Q186243 . ?h rdf:type ontology:Q502895 }
Ali Kadhim Abbas Obeid Dhurgham Ismail Hassan Turki Attiya Shaker Mahmoud Samir Kadhim Hassan Luay Salah Hussein Abdul-Wahed Abbas Rehema Ali Adnan Kadhim Mohammed Qabel Jassim Swadi Abbas Attiya Hammadi Ahmad Hussam Ibrahim Hussam Kadhim Natik Hashim Razzaq Farhan Hussam Fawzi Hussein Saeed Alaa Ahmad Alaa Abdul-Hussein Dara Mohammed Samer Saeed Emad Mohammed Hawar Mulla Mohammed Alaa Gatea Alaa Kadhim Ali Mutashar Amjad Radhi Amjad Kalaf Mohammed Nasser Shakroun Ibrahim Salim Saad Noor Sabri Rahim Hameed Ahmad Jassim Ahmad Salah Alwan Ahmad Ali Jaber Thair Jassam Herdi Noor Al-Deen Nawaf Falah Abdul-Wahab Abu Al-Hail Younis Mahmoud Mustafa Nadhim Qahtan Chathir Drain Saad Natiq Rawez Lawan Mahdi Karim Haidar Abdul-Jabar Haidar Aboodi Sadiq Saadoun Abdul-Ridha Sarmad Rasheed Emad Aoda Haidar Raad Haidar Mahmoud Haidar Obeid Haidar Sabah Laith Hussein Bashar Rasan Yaser Kasim Mohammed Ali Karim Haitham Kadhim Mohammed Gassid Ahmad Abbas Hattab Ghanim Oraibi Saad Abdul-Amir Abdul-Jabar Hashim Hanoon Arjan Mustafa Farhan Shakor Humam Tariq Nadhum Shaker Gaith Abdul-Ghani Fatah Nsaief Rafid Badr Al-Deen Edison David Hashim Ridha Hazem Jassam Hamza Adnan Muayad Khalid Sabah Abdul-Jalil Karim Allawi Ayoub Odisho Shwan Jalal Emad Hashim Mahdi Kamel Peter Murad Hashim Khamis Hassan Mustafa Ahmad Yahya Alwan Alaa Abdul-Zahra Ali Hosni Ayman Hussein Herdi Siamand Ali Faez Atia Faisal Jassim Osama Rashid Ameer Sabah Saeed Mohsen Salih Jaber Douglas Aziz Ahmad Ayad Ali Bahjat Nazar Ashraf Mohammed Jabbar Rubat Hussain Ayed Samir Shaker Essam Yassin Oday Taleb Ahmad Fadhel Nadeem Karim Sameh Saeed Halgurd Mulla Mohammed Karrar Jassim Mohammed Hameed Farhan Ahmad Abdul-Jabar Justin Meram Ali Wahaib Shnaiyn Adnan Mohammad Hassb Abdul-Qadir Tariq Jassim Mohammed Ghulam Khalid Mushir Saif Salman Mohamed Jassim Mahdi Adnan Dirjal Ahmad Abid Ali Ahmad Abid Ali Khalid Mohammed Sabbar Ali Qasim Mshari Ali Hussein Shihab Sarha Jabir Shakir Salah Al-Deen Siamand Ahmad Ibrahim Khalaf Mohannad Nassir Ali Salah Hashim Fareed Majeed Ahmed Yasin Nabeel Abbas Wissam Gassid Wissam Kadhim Wissam Zaki Mustafa Jawda Mustafa Karim Haidar Abdul-Amir Haidar Abdul-Razzaq Khaldoun Ibrahim Jamal Ali Salih Sadir Anmar Almubaraki Haris Mohammed Abbas Rahim Ali Abbas Al-Hilfi Walid Khalid Afat Mahdi Kamil Hamza Hadi Muhsin Jalal Hasan Jalil Zaidan Agool Hussein Ali Wahid Rebin Sulaka Ismail Mohammed Sharif Ali Rehema Hesham Mohammed Ali Qasim Adnan Hamad Ous Ibrahim Thamer Yousif Khalil Allawi Ammar Abdul-Hussein Al-Asadi Saad Qais Noaman Saad Attiya Marwan Hussein Ahmad Mnajed Samal Saeed Maad Ibrahim Mohammed Abdul-Zahra Hawbir Moustafa Mahir Habib Radhi Mohammed Hammad Jalil Hanoon Amjad Attwan Radhi Shenaishil Ibrahim Kamil Salam Shaker Ali Hasan Kamal Mohannad Abdul-Raheem Bassim Abbas Basim Jamal Mahmoud Al-Salihi Falah Hassan Sahib Abbas Hassan Muthana Khalid Waleed Bahar Ahmed Daham Karim Nashat Akram Ahmad Radhi Karim Saddam Waleed Salem Al-Lami Ahmad Kadhim Assad Anad Abid Jassim Mohammed Haji Basil Gorgis Habib Jafar Basim Qasim Qusay Munir Yassir Raad Yassir Abdul-Mohsen Essam Hamad Salem Essam Hamad Salim Osama Ali Sabah Jeayer Raad Hammoudi Safwan Abdul-Ghani Ammar Gaiym Ammo Baba Nabeel Sabah Muslim Mubarak
215
action count
action filter_type
action find_reverse
entity Iraq national football team
relation member of sports team
type common name
[{'concept': 'common name'}, 'member of sports team', 'Iraq national football team']
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { ?h property:member_of_sports_team resource:Iraq_national_football_team . ?h rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q186243
P17
Q15617994
USER
Which administrative territory is Iraq national football team located in ?
(Q186243,P17,c(Q15617994))
action filter_type
action find
entity Q186243
relation P17
type Q15617994
['Q186243', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q186243 property:P17 ?k }
Iraq national football team
action filter_type
action find
entity Iraq national football team
relation country
type designation for an administrative territorial entity
['Iraq national football team', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Iraq_national_football_team property:country ?k }
[]
designation for an administrative territorial entity
Q796
SYSTEM
Iraq
Q796
(Q186243,P17,c(Q15617994))
action filter_type
action find
entity Q186243
relation P17
type Q15617994
[ANSWER] national football team is located in [ANSWER]
['Q186243', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q186243 property:P17 ?k }
Iraq
Iraq national football team is located in Iraq
Iraq
action filter_type
action find
entity Iraq national football team
relation country
type designation for an administrative territorial entity
['Iraq national football team', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Iraq_national_football_team property:country ?k }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q796
P1313
Q12737077
USER
Which occupation is fulfilled by that administrative territory ?
(Q796,P1313,c(Q12737077))
action filter_type
action find
entity Q796
relation P1313
type Q12737077
['Q796', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q796 property:P1313 ?z . ?z rdf:type ontology:Q12737077 }
Iraq
action filter_type
action find
entity Iraq
relation office held by head of government
type occupation
['Iraq', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Iraq property:office_held_by_head_of_government ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q1476165
SYSTEM
Prime Minister of Iraq
Q1476165
(Q796,P1313,c(Q12737077))
action filter_type
action find
entity Q796
relation P1313
type Q12737077
The [ANSWER] is fulfilled by that administrative territory
['Q796', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q796 property:P1313 ?z . ?z rdf:type ontology:Q12737077 }
Prime Minister of Iraq
The Prime Minister of Iraq is fulfilled by that administrative territory
Prime Minister of Iraq
action filter_type
action find
entity Iraq
relation office held by head of government
type occupation
['Iraq', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Iraq property:office_held_by_head_of_government ?z . ?z rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q228243 Q796
P1313
Q12737077
USER
Or Zufre?
OR((Q796,P1313,c(Q12737077)), (Q228243,P1313,c(Q12737077)))
action filter_type
action union
action find
entity Q796
relation P1313
action find
entity Q228243
relation P1313
type Q12737077
{'OR': [['Q796', 'P1313', {'concept': 'Q12737077'}], ['Q228243', 'P1313', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q796 property:P1313 ?m } UNION { resource:Q228243 property:P1313 ?m } } . ?m rdf:type ontology:Q12737077 }
Zufre Iraq
action filter_type
action union
action find
entity Iraq
relation office held by head of government
action find
entity Zufre
relation office held by head of government
type occupation
{'OR': [['Iraq', 'office held by head of government', {'concept': 'occupation'}], ['Zufre', 'office held by head of government', {'concept': 'occupation'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Iraq property:office_held_by_head_of_government ?m } UNION { resource:Zufre property:office_held_by_head_of_government ?m } } . ?m rdf:type ontology:occupation }
[]
occupation
Q1476165 Q26697731
SYSTEM
Prime Minister of Iraq, mayor of Zufre
Q1476165 Q26697731
OR((Q796,P1313,c(Q12737077)), (Q228243,P1313,c(Q12737077)))
action filter_type
action union
action find
entity Q796
relation P1313
action find
entity Q228243
relation P1313
type Q12737077
[ANSWERS]
{'OR': [['Q796', 'P1313', {'concept': 'Q12737077'}], ['Q228243', 'P1313', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q796 property:P1313 ?m } UNION { resource:Q228243 property:P1313 ?m } } . ?m rdf:type ontology:Q12737077 }
Prime Minister of Iraq mayor of Zufre
Prime Minister of Iraq mayor of Zufre
action filter_type
action union
action find
entity Iraq
relation office held by head of government
action find
entity Zufre
relation office held by head of government
type occupation
{'OR': [['Iraq', 'office held by head of government', {'concept': 'occupation'}], ['Zufre', 'office held by head of government', {'concept': 'occupation'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Iraq property:office_held_by_head_of_government ?m } UNION { resource:Zufre property:office_held_by_head_of_government ?m } } . ?m rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q228243
P1001
Q12737077
USER
Which occupation has control over the jurisdiction of Zufre ?
(c(Q12737077),P1001,Q228243)
action filter_type
action find_reverse
entity Q228243
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q228243']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . ?f property:P1001 resource:Q228243 }
Zufre
action filter_type
action find_reverse
entity Zufre
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Zufre']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . ?f property:applies_to_jurisdiction resource:Zufre }
[]
occupation
Q26697731
SYSTEM
mayor of Zufre
Q26697731
(c(Q12737077),P1001,Q228243)
action filter_type
action find_reverse
entity Q228243
relation P1001
type Q12737077
The [ANSWER] has control over the jurisdiction of Zufre
[{'concept': 'Q12737077'}, 'P1001', 'Q228243']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q12737077 . ?f property:P1001 resource:Q228243 }
mayor of Zufre
The mayor of Zufre has control over the jurisdiction of Zufre
mayor of Zufre
action filter_type
action find_reverse
entity Zufre
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Zufre']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:occupation . ?f property:applies_to_jurisdiction resource:Zufre }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1918481 Q228243
P1001
Q12737077
USER
Or Soto de Cerrato?
OR((c(Q12737077),P1001,Q228243), (c(Q12737077),P1001,Q1918481))
action filter_type
action union
action find_reverse
entity Q228243
relation P1001
action find_reverse
entity Q1918481
relation P1001
type Q12737077
{'OR': [[{'concept': 'Q12737077'}, 'P1001', 'Q228243'], [{'concept': 'Q12737077'}, 'P1001', 'Q1918481']]}
SELECT DISTINCT ?v WHERE { { { ?v property:P1001 resource:Q228243 } UNION { ?v property:P1001 resource:Q1918481 } } . ?v rdf:type ontology:Q12737077 }
Soto de Cerrato Zufre
action filter_type
action union
action find_reverse
entity Zufre
relation applies to jurisdiction
action find_reverse
entity Soto de Cerrato
relation applies to jurisdiction
type occupation
{'OR': [[{'concept': 'occupation'}, 'applies to jurisdiction', 'Zufre'], [{'concept': 'occupation'}, 'applies to jurisdiction', 'Soto de Cerrato']]}
SELECT DISTINCT ?v WHERE { { { ?v property:applies_to_jurisdiction resource:Zufre } UNION { ?v property:applies_to_jurisdiction resource:Soto_de_Cerrato } } . ?v rdf:type ontology:occupation }
[]
occupation
Q26697731 Q26697120
SYSTEM
mayor of Zufre, mayor of Soto de Cerrato
Q26697731 Q26697120
OR((c(Q12737077),P1001,Q228243), (c(Q12737077),P1001,Q1918481))
action filter_type
action union
action find_reverse
entity Q228243
relation P1001
action find_reverse
entity Q1918481
relation P1001
type Q12737077
[ANSWERS]
{'OR': [[{'concept': 'Q12737077'}, 'P1001', 'Q228243'], [{'concept': 'Q12737077'}, 'P1001', 'Q1918481']]}
SELECT DISTINCT ?v WHERE { { { ?v property:P1001 resource:Q228243 } UNION { ?v property:P1001 resource:Q1918481 } } . ?v rdf:type ontology:Q12737077 }
mayor of Zufre mayor of Soto de Cerrato
mayor of Zufre mayor of Soto de Cerrato
action filter_type
action union
action find_reverse
entity Zufre
relation applies to jurisdiction
action find_reverse
entity Soto de Cerrato
relation applies to jurisdiction
type occupation
{'OR': [[{'concept': 'occupation'}, 'applies to jurisdiction', 'Zufre'], [{'concept': 'occupation'}, 'applies to jurisdiction', 'Soto de Cerrato']]}
SELECT DISTINCT ?v WHERE { { { ?v property:applies_to_jurisdiction resource:Zufre } UNION { ?v property:applies_to_jurisdiction resource:Soto_de_Cerrato } } . ?v rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q12737077 Q386724 Q1792379
USER
Which occupations are expressed in max number of works or art genres ?
(c(Q386724)|c(Q1792379),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
[[{'concept': 'Q386724'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?f ) { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?h ) WHERE { { ?l property:P180 ?e . ?e rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q386724 } UNION { ?l rdf:type ontology:Q1792379 . ?e rdf:type ontology:Q12737077 . ?l property:P180 ?e } } GROUP BY ?e } } . FILTER ( ?r = ?f ) . { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?r ) WHERE { { ?q rdf:type ontology:Q12737077 . ?u rdf:type ontology:Q386724 . ?u property:P180 ?q } UNION { ?u property:P180 ?q . ?u rdf:type ontology:Q1792379 . ?q rdf:type ontology:Q12737077 } } GROUP BY ?q } }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
[[{'concept': 'work'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?f ) { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?h ) WHERE { { ?l property:depicts ?e . ?e rdf:type ontology:occupation . ?l rdf:type ontology:work } UNION { ?l rdf:type ontology:art_genre . ?e rdf:type ontology:occupation . ?l property:depicts ?e } } GROUP BY ?e } } . FILTER ( ?r = ?f ) . { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?r ) WHERE { { ?q rdf:type ontology:occupation . ?u rdf:type ontology:work . ?u property:depicts ?q } UNION { ?u property:depicts ?q . ?u rdf:type ontology:art_genre . ?q rdf:type ontology:occupation } } GROUP BY ?q } }
[]
occupation work art genre
Q2730732
SYSTEM
equestrian
Q2730732
(c(Q386724)|c(Q1792379),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
[ANSWER] is expressed in max number of works or art genres
[[{'concept': 'Q386724'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?f ) { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?h ) WHERE { { ?l property:P180 ?e . ?e rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q386724 } UNION { ?l rdf:type ontology:Q1792379 . ?e rdf:type ontology:Q12737077 . ?l property:P180 ?e } } GROUP BY ?e } } . FILTER ( ?r = ?f ) . { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?r ) WHERE { { ?q rdf:type ontology:Q12737077 . ?u rdf:type ontology:Q386724 . ?u property:P180 ?q } UNION { ?u property:P180 ?q . ?u rdf:type ontology:Q1792379 . ?q rdf:type ontology:Q12737077 } } GROUP BY ?q } }
equestrian
Equestrian is expressed in max number of works or art genres
equestrian
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
[[{'concept': 'work'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?f ) { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?h ) WHERE { { ?l property:depicts ?e . ?e rdf:type ontology:occupation . ?l rdf:type ontology:work } UNION { ?l rdf:type ontology:art_genre . ?e rdf:type ontology:occupation . ?l property:depicts ?e } } GROUP BY ?e } } . FILTER ( ?r = ?f ) . { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?r ) WHERE { { ?q rdf:type ontology:occupation . ?u rdf:type ontology:work . ?u property:depicts ?q } UNION { ?u property:depicts ?q . ?u rdf:type ontology:art_genre . ?q rdf:type ontology:occupation } } GROUP BY ?q } }
[]